Home > Language Reference > Classes > StreamSerial

Flush Method

Flushes a buffer.

Syntax

Public Sub Flush(ByVal eDirection As HbStream)

ParameterDescription
eDirectionSpecifies the buffer to flush.

Remarks

A call to this function forces the sending or the reception of all the data on standby in the internal buffers. The parameter eDirection can take one of the two following values, and specifies which buffer to flush:

ConstantDescription
hbStreamReadThe input buffer is flushed.
hbStreamWriteThe output buffer is flushed.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.3N/A