Important: The information in this document is obsolete and should not be used for new development.
SerSetBuf
You can use theSerSetBuffunction 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
TheSerSetBuffunction replaces the input buffer for the specified input driver. TheserBPtrparameter points to the buffer, and theserBLenparameter 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 callingSerSetBufwith theserBLenparameter equal to 0.ASSEMBLY-LANGUAGE INFORMATION
TheSerSetBuffunction is equivalent to a Device Manager control request with acsCodevalue of 9. You pass theserBPtrandserBLenparameters in thecsParamfield (csParam[0]=serBPtr;csParam[4]=serBLen).RESULT CODE
noErr 0 No error