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