SerSetBuf
SerSetBuf
Specify a new input buffer for referenced driver short refNum ; input driver reference number
Ptr serBPtr ; address of new buffer short serBLen ; byte length; number of bytes in the buffer
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,
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.
noErr (0) No error
Notes: We are warned that a new input buffer must be locked while it's in use.
and csParam=serBPtr, and csParam+=serBLen.