Denso BHT-400-CE Reference Manual page 303

Bar code handy terminal class library reference manual
Table of Contents

Advertisement

InBufferCount
Acquires the size of meaningful data in the receive buffer (in buffer).
Syntax
[VB]
Public Property ReadOnly
[C#]
public int
InBufferCount
Property
Size of meaningful data in the receive buffer (in buffer) (bytes)
Exceptions
Name of Exception
ObjectDisposedException
Note
Each time a piece of data is read from the receive buffer using the Input method, the size of
meaningful data in the receive buffer decreases by the amount of the data just read out.
If the port is closed by specifying "false" for the PortOpen property, the size of meaningful
data is reset to "0".
[Ex.] Read out all data remaining in the receive buffer.
[VB]
While MyComm.InBufferCount > 0
len = MyComm.Input(buffer, 0, buffer.Length)
End While
[C#]
while (MyComm.InBufferCount > 0)
{
len = MyComm.Input(buffer, 0, buffer.Length);
}
InBufferCount
As Integer
{get}
Meaning
The COM port has not been opened yet.
- 297 -

Advertisement

Table of Contents
loading

Table of Contents