2
协议缓冲区如何处理已压缩字节[]的压缩?ProtoBuf-Net已压缩的压缩?
伪例如:
[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);
Marc,T为你的答复。 – user1412044
感谢您的回复 - 我已经问过关于此链接的另一个问题:http://stackoverflow.com/questions/10719169/protobuf-net-performance – user1412044