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