SerSetBuf
You can use the SerSetBuf function to increase the size of the serial input buffer, or to restore the driver's default buffer.
FUNCTION SerSetBuf (refNum: Integer; serBPtr: Ptr;
serBLen: Integer): OSErr
refNum
- The driver reference number of the serial input driver.
serBPtr
- A pointer to the new input buffer.
serBLen
- The size of the new input buffer, or 0 to restore the default buffer.
DESCRIPTION
The SerSetBuf function replaces the input buffer for the specified input driver. The serBPtr parameter points to the buffer, and the serBLen parameter specifies the number of bytes in the buffer. The buffer must be locked while in use. Before closing the driver you must restore the default buffer by calling SerSetBuf with the serBLen parameter equal to 0.
ASSEMBLY-LANGUAGE INFORMATION
The SerSetBuf function is equivalent to a Device Manager control request with a csCode value of 9. You pass the serBPtr and serBLen parameters in the csParam field (csParam[0] = serBPtr; csParam[4] = serBLen).
RESULT CODE