Important: The information in this document is obsolete and should not be used for new development.
SerSetBuf
You can use theSerSetBuf
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
TheSerSetBuf
function replaces the input buffer for the specified input driver. TheserBPtr
parameter points to the buffer, and theserBLen
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 callingSerSetBuf
with theserBLen
parameter equal to 0.ASSEMBLY-LANGUAGE INFORMATION
TheSerSetBuf
function is equivalent to a Device Manager control request with acsCode
value of 9. You pass theserBPtr
andserBLen
parameters in thecsParam
field (csParam[0]
=serBPtr
;csParam[4]
=serBLen
).RESULT CODE
noErr 0 No error