.getbuffer Method

Function:

Reads the specified number of bytes from the currently selected RAM buffer of the flash memory (selection is made through the fd.buffernum property).

Syntax:

fd.getbuffer(offset as word, len as word) as string

Returns:

The string with the data from the buffer.

See Also:

Direct Sector Access, fd.buffernum, fd.setbuffer, fd.getsector, fd.setsector, fd.checksum, fd.copyfirmware, fd.copyfirmwarelzo


Part

Description

offset

Starting offset in the buffer. Possible value range is 0-263 (the buffer stores 264 bytes of data, offset is counted from 0).

len

Number of bytes to read. The length of returned data will depend on one of three factors, whichever is smaller: len argument, amount of data still available in the buffer counting from the offset position, and the capacity of receiving string variable.