Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.Messaging.DataMessageInputStream Class Reference

An input stream for reading from messages. More...

Inheritance diagram for PushTechnology.DiffusionCore.Messaging.DataMessageInputStream:

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...
 

Detailed Description

An input stream for reading from messages.

Constructor & Destructor Documentation

PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.DataMessageInputStream ( IDataMessage  message)

Constructor.

Parameters
message

Member Function Documentation

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.

Returns
The total number of bytes written into the buffer. This can be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached before any bytes are read.
Parameters
bufferWhen 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.
offsetThe zero-based byte offset in buffer at which to begin storing data from the current stream.
countThe maximum number of bytes to read.
Exceptions
T:System.ArgumentNullExceptionbuffer is null.
T:System.ArgumentOutOfRangeExceptionoffset or count is negative.
T:System.ArgumentExceptionoffset subtracted from the buffer length is less than count .
T:System.ObjectDisposedExceptionThe current stream instance is closed.

<filterpriority>2</filterpriority>

int PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.Read ( )

Reads a byte from the message.

Returns
override int PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.ReadByte ( )

Read a byte from the message.

Returns

Property Documentation

BinaryReader PushTechnology.DiffusionCore.Messaging.DataMessageInputStream.Stream
getset

Get the binary reader.