dump(bufferView: ArrayBufferView | ArrayBuffer): string
Convert a buffer to a hexdump string.
▶Example 1
Example 1
const buffer = new TextEncoder().encode("The quick brown fox jumps over the lazy dog."); console.log(dump(buffer)); // 00000000 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 |The quick brown | // 00000010 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20 74 |fox jumps over t| // 00000020 68 65 20 6c 61 7a 79 20 64 6f 67 2e |he lazy dog.|
bufferView: ArrayBufferView | ArrayBuffer