IOpenAccessReader interface | QSYS API Reference Guide

Defines methods for reading data from an open access channel.

Namespace: ASNA.DataGate.DataLink Assembly: ASNA.QSys.DataGate.Client.dll

Extends: doesn’t extend any other interfaces.

Methods

Signature Description
Flush() Flushes the reader, clearing any buffered data.
Read(Byte[], Int32, Int32) Reads a sequence of bytes from the channel into the specified buffer.
ReadByte() Reads a single byte from the channel.
Receive() Receives data from the channel.

void Flush()

Flushes the reader, clearing any buffered data.

void Flush()

int Read(Byte[] inBuf, int iBegin, int cBytes)

Reads a sequence of bytes from the channel into the specified buffer.

int Read(Byte[] inBuf, int iBegin, int cBytes)

Parameters

Type Parameter name Description
Byte[] inBuf The buffer to store the data read from the channel.
Int32 iBegin The zero-based byte offset in inBuf at which to begin storing the data read from the channel.
Int32 cBytes The maximum number of bytes to read.

Returns

Type Description
Int32 The total number of bytes read into the buffer.

int ReadByte()

Reads a single byte from the channel.

int ReadByte()

void Receive()

Receives data from the channel.

void Receive()