![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
An input stream for reading from messages. More...
Public Member Functions | |
DataMessageInputStream (IDataMessage message) | |
Constructor. More... | |
override int | ReadByte () |
Read a byte from the message. More... | |
override int | Read (byte[] buffer, int offset, int count) |
Reads a block of bytes from the current stream and writes the data to a buffer. More... | |
int | Read () |
Reads a byte from the message. More... | |
Properties | |
BinaryReader | Stream [get, set] |
Get the binary reader. More... | |
An input stream for reading from messages.
PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.DataMessageInputStream | ( | IDataMessage | message | ) |
Constructor.
message |
override int PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.Read | ( | byte[] | buffer, |
int | offset, | ||
int | count | ||
) |
Reads a block of bytes from the current stream and writes the data to a buffer.
buffer | When this method returns, contains the specified byte array with the values between offset and (offset + count - 1) replaced by the characters read from the current stream. |
offset | The zero-based byte offset in buffer at which to begin storing data from the current stream. |
count | The maximum number of bytes to read. |
T:System.ArgumentNullException | buffer is null. |
T:System.ArgumentOutOfRangeException | offset or count is negative. |
T:System.ArgumentException | offset subtracted from the buffer length is less than count . |
T:System.ObjectDisposedException | The current stream instance is closed. |
<filterpriority>2</filterpriority>
int PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.Read | ( | ) |
Reads a byte from the message.
override int PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.ReadByte | ( | ) |
Read a byte from the message.
|
getset |
Get the binary reader.