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