public void Encode() { using (MemoryStream ms = new MemoryStream()) { BinaryWriter writer = new BinaryWriter(ms); KeyDescriptor.Serialize(writer); RecordDescriptor.Serialize(writer); Raw = ms.ToArray(); IsEncoded = true; } }
public void Encode() { using (MemoryStream ms = new MemoryStream()) { BinaryWriter writer = new BinaryWriter(ms); KeyDescriptor.Serialize(writer); RecordDescriptor.Serialize(writer); Raw = ms.ToArray(); IsEncoded = true; } }