ArrayBuffer from String
Create an ArrayBuffer with the raw bytes from a String.
Installation
npm install --save array-buffer-from-string
Usage
const arrayBufferFromString = console//=> ArrayBuffer { byteLength: 24 }
API
arrayBufferFromString(input: string) => ArrayBuffer
Create an ArrayBuffer with the raw bytes from a String.
See also
hex-to-array-buffer - Turn a string of hexadecimal characters into an ArrayBuffer