Ejemplo n.º 1
0
 public static void SerializeLengthDelimited(Stream stream, UpdateItem instance)
 {
     byte[] bytes = UpdateItem.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }
Ejemplo n.º 2
0
 public virtual void ReadFromStream(Stream stream, int size, bool isDelta = false)
 {
     UpdateItem.DeserializeLength(stream, size, this, isDelta);
 }
Ejemplo n.º 3
0
 public void ResetToPool()
 {
     UpdateItem.ResetToPool(this);
 }
Ejemplo n.º 4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     UpdateItem.Deserialize(stream, this, isDelta);
 }