@webbuf/rw
Version:
Read and write buffers, optimized with Rust/WASM for the web, node.js, deno, and bun.
260 lines (259 loc) • 5.91 kB
JSON
{
"read": {
"errors": [
{
"hex": "",
"len": 1,
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00",
"len": 2,
"error": "not enough bytes in the buffer to read"
},
{
"hex": "0000",
"len": 3,
"error": "not enough bytes in the buffer to read"
},
{
"hex": "000000",
"len": 4,
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00000000",
"len": 5,
"error": "not enough bytes in the buffer to read"
}
]
},
"read_u8": {
"errors": [
{
"hex": "",
"error": "not enough bytes in the buffer to read"
}
]
},
"read_u16_be": {
"errors": [
{
"hex": "",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00",
"error": "not enough bytes in the buffer to read"
}
]
},
"read_u32_be": {
"errors": [
{
"hex": "",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "0000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "000000",
"error": "not enough bytes in the buffer to read"
}
]
},
"read_u64_be": {
"errors": [
{
"hex": "",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "0000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "0000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "000000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "00000000000000",
"error": "not enough bytes in the buffer to read"
}
]
},
"read_var_int_buf": {
"errors": [
{
"hex": "",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fd",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fd00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fd0000",
"error": "non-minimal encoding"
},
{
"hex": "fe",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe0000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe00000000",
"error": "non-minimal encoding"
},
{
"hex": "ff",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff0000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff00000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff0000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff000000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff00000000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff0000000000000000",
"error": "non-minimal encoding"
}
]
},
"read_var_int": {
"errors": [
{
"hex": "",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fd",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fd00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fd0000",
"error": "non-minimal encoding"
},
{
"hex": "fe",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe0000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "fe00000000",
"error": "non-minimal encoding"
},
{
"hex": "ff",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff00",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff0000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff00000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff0000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff000000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff00000000000000",
"error": "not enough bytes in the buffer to read"
},
{
"hex": "ff0000000000000000",
"error": "non-minimal encoding"
}
]
}
}