InBufferSize Property

       

Sets and returns the size of the receive buffer in bytes.

Syntax

object.InBufferSize[ = value ]

The InBufferSize property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer expression specifying the size of the receive buffer in bytes.

Remarks

InBufferSize refers to the total size of the receive buffer. The default size is 1024 bytes. Do not confuse this property with the InBufferCount property which reflects the number of characters currently waiting in the receive buffer.

Note   Note that the larger you make the receive buffer, the less memory you have available to your application. However, if your buffer is too small, it runs the risk of overflowing unless handshaking is used. As a general rule, start with a buffer size of 1024 bytes. If an overflow error occurs, increase the buffer size to handle your application's transmission rate.

Data Type

Integer