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