Extract byte string value if type matches.
Decoded byte strings are zero-copy views aliasing the input buffer - mutating the input after decoding (or mutating the returned bytes) changes the other side. Call .slice() first if you need an independent copy.
.slice()
CBOR value
Byte string or undefined
Extract byte string value if type matches.
Decoded byte strings are zero-copy views aliasing the input buffer - mutating the input after decoding (or mutating the returned bytes) changes the other side. Call
.slice()first if you need an independent copy.