StreamUtility class

Copies data from one stream to another.

public static class StreamUtility

Public Members

name description
static CreatePartialStream(…) Uses RebasedStream and/or TruncatedStream to create a read-only partial stream wrapper.
static ReadAllBytes(…) Reads all bytes from the stream.
static ReadAllBytesAsync(…) Reads all bytes from the stream.
static ReadBlock(…) Reads count bytes from stream into buffer, starting at the byte given by offset.
static ReadBlockAsync(…) Reads count bytes from stream into buffer, starting at the byte given by offset.
static ReadExactly(…) Reads exactly count bytes from stream. (2 methods)
static ReadExactlyAsync(…) Reads exactly count bytes from stream. (2 methods)

See Also