Exemple #1
0
 public byte[] ToProtoBytes()
 {
     return(ItemContainer.SerializeToBytes(this));
 }
Exemple #2
0
 public static void SerializeLengthDelimited(Stream stream, ItemContainer instance)
 {
     byte[] bytes = ItemContainer.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }