IOpenAccessWriter interface | QSYS API Reference Guide
Defines methods for writing data to 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 writer, sending any buffered data to the channel. |
| Prepare() | Prepares the writer for a new write operation. |
| Write(Byte[], Int32, Int32) | Writes a sequence of bytes to the channel from the specified buffer. |
| WriteByte(Byte) | Writes a single byte to the channel. |
void Flush()
Flushes the writer, sending any buffered data to the channel.
void Flush()
void Prepare()
Prepares the writer for a new write operation.
void Prepare()
void Write(Byte[] inBuf, int iBegin, int cBytes)
Writes a sequence of bytes to the channel from the specified buffer.
void Write(Byte[] inBuf, int iBegin, int cBytes)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Byte[] | inBuf | The buffer containing the data to write to the channel. |
| Int32 | iBegin | The zero-based byte offset in inBuf at which to begin writing from. |
| Int32 | cBytes | The number of bytes to write. |
void WriteByte(byte b)
Writes a single byte to the channel.
void WriteByte(byte b)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Byte | b | The byte to write. |