协议缓冲区如何处理已经压缩的字节 [] 的压缩?
伪示例:
[ProtoContract]
class Foo
{
[ProtoMember(1)]
public string Bar{ get; set; }
[ProtoMember(2)]
public byte[] CompressedFoo { get; set; }
}
// proto is my ProtocolBuffer.Net utility class
Foo _foo = new Foo() { Bar = "Hello World"; };
Foo _foo2 = new Foo() { Bar = "Goodbye cruel world"; };
_foo2.CompressedFoo = proto.Compress(_foo);
byte[] compressedFoo2 = proto.Compress(_foo2);