diff --git a/JS-API-Documentation.html b/JS-API-Documentation.html index 91642b850..4a68b7644 100644 --- a/JS-API-Documentation.html +++ b/JS-API-Documentation.html @@ -721,7 +721,7 @@ Returns a constructor function that will create an object representing a structu

mem.getblock(address, length)
mem.getblock(address: number, length: number): Buffer

-Returns a block of data from memory as a Buffer object. +Returns a block of data from memory as a Buffer object.
 fs.writefile("ram_dump.bin", mem.getblock(K0BASE, mem.ramSize));
 
@@ -731,7 +731,7 @@ Returns a block of data from memory as a data may be one of the following types: ArrayBuffer, -Buffer, +Buffer, DataView, TypedArray, string.
@@ -1172,9 +1172,9 @@ Creates an N64Image object.
 width: Width of the image.
height: Height of the image.
format: Optional image format. IMG_RGBA32 by default. See the table below for supported formats.
-pixels: Optional Buffer object containing pixel data. +pixels: Optional Buffer object containing pixel data. The byte length must be equal to (width * height * N64Image.bpp(format)) / 8. Copied to image.pixels.
-palette: Optional Buffer object containing palette data. Copied to image.palette. +palette: Optional Buffer object containing palette data. Copied to image.palette.

@@ -1238,7 +1238,7 @@ Static function. Returns the number of bits used per pixel for a given image for

image.toPNG()
image.toPNG(): Buffer

-Returns a PNG representation of the image data as a Buffer object. +Returns a PNG representation of the image data as a Buffer object.
 fs.writefile("image.png", image.toPNG());
 
@@ -1460,7 +1460,7 @@ Closes the file referenced by fd.

Writes buffer to the file referenced by file descriptor fd. buffer may be one of the following types: ArrayBuffer, -Buffer, +Buffer, DataView, TypedArray, string.

@@ -1489,7 +1489,7 @@ Writes buffer to the file specified by fd into buffer. buffer may be one of the following types: ArrayBuffer, -Buffer, +Buffer, DataView, TypedArray.

offset: Position in the source buffer.
@@ -1500,7 +1500,7 @@ Reads data from the file referenced by fd into

fs.readfile(path)
fs.readfile(path: string): Buffer

-Returns a Buffer object representing the data of the file specified by path. +Returns a Buffer object representing the data of the file specified by path.

fs.exists(path)
fs.exists(path: string): boolean
@@ -1652,7 +1652,7 @@ Fully closes the socket.
socket.on('data', listener: (data: Buffer) => void): Socket

Registers a listener for the 'data' event.

-listener receives data as a Buffer object. +listener receives data as a Buffer object.

Returns the Socket object.

socket.on('end', listener)