SerGetBuf
SerGetBuf Get the number of bytes in an input driver's buffer short refNum ; input driver reference number
long *count ; number of bytes in buffer
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.
noErr (0) No error
and with the count returned as a long in csParam.