SerGetBuf
SerGetBuf Get the number of bytes in an input driver's buffer
#include <Serial.h> Serial Drivers
OSErr SerGetBuf( refNum, count );
short refNum ; input driver reference number
long *count ; number of bytes in buffer
returns Error Code; 0=no error
SerGetBuf gets the number of bytes in the buffer for the specified input
driver.
refNum is the parameter that identifies the input driver with the buffer that
is being counted.
count is the total number of bytes in the buffer.
Returns: an operating system Error Code.
noErr (0) No error

Notes: This call is equivalent to a Device Manager Status call with csCode=2
and with the count returned as a long in csParam.