Snarf.Nfs.FileSystem.FileHandle.Read C# (CSharp) Method

Read() private method

private Read ( NfsPacket packet ) : bool
packet NfsPacket
return bool
        internal virtual bool Read(NfsPacket packet)
        {
            root = packet.GetUInt(); // the first long in the packet is the handle of the root
            handle = packet.GetUInt(); // the next long is the handle of the file
            @readonly = packet.GetUInt(); // the next is a read only flag

            // The rest is nothing. There are 32 bytes in a FileHandle and this has read in 3 words, or 12 bytes.
            packet.Advance(32 - 3 * 4);

            return true;
        }