public static IndexInfo Decode(byte[] data, ref int offset) { var info = new IndexInfo(); info.Id = EncodeDecoder.DecodeString(data, ref offset); info.FileName = EncodeDecoder.DecodeString(data, ref offset); info.Path = EncodeDecoder.DecodeString(data, ref offset); info.Offset = EncodeDecoder.DecodeUInt32(data, ref offset); info.Length = EncodeDecoder.DecodeUInt32(data, ref offset); info.PageLength = EncodeDecoder.DecodeUInt32(data, ref offset); info.Deleted = EncodeDecoder.DecodeBoolean(data, ref offset); return(info); }
public static IndexInfo Decode(byte[] data, ref int offset) { return(new IndexInfo { Id = EncodeDecoder.DecodeString(data, ref offset), FileName = EncodeDecoder.DecodeString(data, ref offset), Path = EncodeDecoder.DecodeString(data, ref offset), Offset = EncodeDecoder.DecodeUInt32(data, ref offset), Length = EncodeDecoder.DecodeUInt32(data, ref offset), PageLength = EncodeDecoder.DecodeUInt32(data, ref offset), Deleted = EncodeDecoder.DecodeBoolean(data, ref offset) }); }