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