public void ReadFrom(BobFsNode node, int offset) { byte[] headBuf = new byte[8]; node.ReadAll(offset, headBuf, 0, 8); Inum = BitConverter.ToUInt32(headBuf, 0); uint nameLength = BitConverter.ToUInt32(headBuf, 4); byte[] nameBuf = new byte[nameLength]; node.ReadAll(offset + 8, nameBuf, 0, (int)nameLength); Name = Encoding.ASCII.GetString(nameBuf, 0, (int)nameLength); }