1
我需要解碼通過像本實施例中的結構所表示的二進制數據(C#):解碼二進制協議消息
struct Message
{
byte id;
int type;
bool valid;
}
和實施例的二進制數據:0x040000000201其中id = 4,類型= 2,valid = true;
我可以使用Thrift,Protocol Buffers或任何其他工具來解碼未由相同工具編碼的二進制數據嗎? 你可以提供任何有關如何做到這一點?
謝謝
查看所選答案http://stackoverflow.com/questions/2480116/marshalling-a-big-endian-byte-collection-into-a-struct-in-order-to-pull-out-valu – Matthew 2012-03-09 18:59:45