SerSetBuf
SerSetBuf Specify a new input buffer for referenced driver
#include <Serial.h> Serial Drivers
OSErr SerSetBuf( refNum, serBPtr, serBLen );
short refNum ; input driver reference number
Ptr serBPtr ; address of new buffer
short serBLen ; byte length; number of bytes in the buffer
returns Error Code; 0=no error
SerSetBuf creates a new input buffer, assigns it a location, and indicates its
size. Remember that you have to allocate space yourself for the buffer,
SerSetBuf does not do it for you.
refNum is the parameter that identifies the input driver for which the
buffer is being created.
serBPtr is a pointer to the new buffer's location.
serBLen is the length, in bytes, of the new input buffer. Set this value to 0
to restore the driver's default buffer.
Returns: an operating system Error Code.
noErr (0) No error

Notes: We are warned that a new input buffer must be locked while it's in use.
This call is equivalent to a Device Manager Control call with csCode=9
and csParam=serBPtr, and csParam+=serBLen.