Expand description
Byte extraction: the one place a JS value becomes Vec<u8>.
BufferSource (an ArrayBuffer or any view over one), Node’s
Buffer, an array of byte values, or a string in one of the encodings
Buffer understands. Every consumer — crypto, the compression
streams, Buffer.from, setInputFiles — reads through here rather
than repeating the walk.
Functions§
- buffer_
source_ bytes - A
BufferSource: anArrayBuffer, or a view over one. - value_
to_ bytes - Node’s
Buffer.fromlowering: a string inencoding, an array of byte values, anotherBuffer, or anyBufferSource.