hexToArrayBuffer
Official
Converts a hex string to an ArrayBuffer.
Import:
import { hexToArrayBuffer } from 'obsidian';Signature:
function hexToArrayBuffer(hex: string): ArrayBufferParameters:
| Parameter | Type | Description |
|---|---|---|
hex |
string | The hex string to convert. |
Returns: ArrayBuffer — The ArrayBuffer.
Example:
console.log(hexToArrayBuffer('00112233445566778899aabbccddeeff'));