.Buffrq Method

Top  Previous  Next

Function:

Pre-requests "numpages" number of buffer pages (1 page= 256 bytes) for the TX buffer of the wln. object.

Syntax:

wln.buffrq(numpages as {byte | word}) as {byte | word}

Returns:

Actual number of pages that can be allocated.

See Also:

Allocating Buffer Memory

wln.buffsize

 


Part

Description

numpages

Requested numbers of buffer pages to allocate (recommended value is 5).

Details

This method will not work if the GA1000 is already operational (wln.enabled= 1- YES).

 

Older devices had smaller RAM sizes, so the numpages argument and the value returned by the method were of the byte type. The maximum possible number of pages, therefore, could not exceed 255. On newer devices with larger RAM capacities this method takes and returns word values. Inspect the method's declaration on the platform you are using to make sure you know the data type it employs.