bytesToArray() function
bytesToArray converts a buffer into <4mb chunks for use with grpc API
Signature:
export declare function bytesToArray(chunk: Uint8Array, size?: number): Uint8Array[];
Parameters
Parameter | Type | Description |
---|---|---|
chunk | Uint8Array | an input Buffer or Uint8Array |
size | number |
Returns:
Uint8Array[]