Diffusion .NET Client Library
6.1.5
|
The read-only interface for values that are internally represented as binary data. More...
Public Member Functions | |
Stream | AsInputStream () |
Returns the data as a read-only stream. More... | |
byte[] | ToByteArray () |
Returns a copy of the data as a byte array. More... | |
void | CopyTo (Stream outputStream) |
Writes the data to an output stream. More... | |
Properties | |
int | Length [get] |
Returns the length of the data in bytes. More... | |
The read-only interface for values that are internally represented as binary data.
This interface provides access to copies of the binary data, making instances effectively immutable.
Since: 5.8
Stream PushTechnology.ClientInterface.Data.IBytes.AsInputStream | ( | ) |
Returns the data as a read-only stream.
void PushTechnology.ClientInterface.Data.IBytes.CopyTo | ( | Stream | outputStream | ) |
Writes the data to an output stream.
outputStream | The target output stream. |
This method avoids the allocation and copying costs of producing an intermediate byte array via ToByteArray().
ArgumentNullException | outputStream is null . |
IOException | An I/O error occurs. |
NotSupportedException | The outputStream stream does not support writing, or the stream is already closed. |
ObjectDisposedException | Methods were called after the outputStream stream was closed. |
byte [] PushTechnology.ClientInterface.Data.IBytes.ToByteArray | ( | ) |
Returns a copy of the data as a byte array.
|
get |
Returns the length of the data in bytes.