Closed hillbig closed 10 years ago
I found that, encLen calls encLenNumber at encoding. https://github.com/ugorji/go/blob/master/codec/binc.go#L288 however, decLen calls decUint at decoding, in which different decoding is applied. https://github.com/ugorji/go/blob/master/codec/binc.go#L571
Thanks so much. Fix coming pronto.
Hi, I often use your great library, thanks.
I encountered a failure in decoding long []byte with BincHandle. The following code is an example to reproduce the failure. I expect that the both lengths should be 65536, but the length of decoded one is 256.