OutputBuffer method


Prototype

OutputBuufer Proto lpBufPtr:LPLONG, lBuflength:LONG

Syntax

Invoke OutputBuffer, lpBufPtr, lBuflength

Function

Saves a buffer in a binary file in the same folder and with the same name as the file calling the method. The resultant binary file will have the bin extension.

Parameters

lpBufPtr

Pointer to the effective address of the buffer to be saved.

lBuflength

Specifies the length, in bytes, of the buffer to be saved.

Return value

Returns the number of bytes saved, or -1 if the file was not saved.


REMARKS: The maximum length of the buffer to be saved is limited to 1MB.