We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readBigUInt and readBigNInt assume (https://github.com/well-typed/cborg/blob/master/cborg/src/Codec/CBOR/Read.hs#L2660) that the payload is a definite-length bytestring, although as far as I can see the specification merely says it his a "byte string data item", which I think means both definite and indefinite length bytestrings should be allowed.
readBigUInt
readBigNInt
Example (bigint tag, and then a random indefinite-length bytestring I got the library to make for me):
> let y :: Term = deserialise $ BSL.fromStrict (BS.pack [0xc2, 0x5f, 0x43, 0x6c, 0x6f, 0x6c, 0xff]) > y *** Exception: DeserialiseFailure 0 "expected integer"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
readBigUInt
andreadBigNInt
assume (https://github.com/well-typed/cborg/blob/master/cborg/src/Codec/CBOR/Read.hs#L2660) that the payload is a definite-length bytestring, although as far as I can see the specification merely says it his a "byte string data item", which I think means both definite and indefinite length bytestrings should be allowed.Example (bigint tag, and then a random indefinite-length bytestring I got the library to make for me):
The text was updated successfully, but these errors were encountered: