Skip to main content

Function: readFileToBuffer()

function readFileToBuffer(path, bufLength?): Uint8Array;

Reads a file and returns its content as a Uint8Array.

Parameters

path: string

The path of the file to read.

bufLength?: number

Returns

Uint8Array

The content of the file as a Uint8Array.


Coinweb © 2024