(input: Uint8Array | number[])
| 313 | }; |
| 314 | |
| 315 | export const toArrayBuffer = (input: Uint8Array | number[]): ArrayBuffer => { |
| 316 | return input instanceof Uint8Array ? input.buffer : new Uint8Array(input).buffer; |
| 317 | }; |
| 318 | |
| 319 | export const toUint8Array = (input: ArrayBuffer | number[] | Uint8Array): Uint8Array => { |
| 320 | if (input instanceof Uint8Array) { |