( b: Buffer | Uint8Array | ArrayBufferView )
| 88 | * @returns ArrayBuffer |
| 89 | */ |
| 90 | export const bufferToArrayBuffer = ( |
| 91 | b: Buffer | Uint8Array | ArrayBufferView |
| 92 | ) => { |
| 93 | return b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength); |
| 94 | }; |
| 95 | |
| 96 | /** |
| 97 | * Simple func. |
no outgoing calls
no test coverage detected