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); }
public virtual void ReadFromStream(Stream stream, int size, bool isDelta = false) { UpdateItem.DeserializeLength(stream, size, this, isDelta); }
public void ResetToPool() { UpdateItem.ResetToPool(this); }
public void FromProto(Stream stream, bool isDelta = false) { UpdateItem.Deserialize(stream, this, isDelta); }