You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const { unzip } = require('node:zlib');
const { promisify } = require('node:util');
const do_unzip = promisify(unzip);
//remove the first 6 bytes and inflate using zlib
const inflated = await do_unzip(buffer.subarray(6));
//we are skipping check for 131 in decode function rest of logic in decode function is the same
var Obj = Bert.decode_inner(inflated);
if (Obj.rest.length !== 0) {
throw ("Invalid BERT.");
}
return Obj.value;
Getting error:
Unexpected BERT type: 80
when trying to decode.
I am using:
Compressed Term Format
The first byte after 131 is "80"
The text was updated successfully, but these errors were encountered: