Click or drag to resize

StreamExtensions Methods

The StreamExtensions type exposes the following members.

Methods
  Name Description
Public Extension Method CopyStream Obsolete.
Copies input Stream onto output Stream.
Public Extension Method CopyTo Writes the contents of a stream to the provided stream.
Public Extension Method Read7BitUInt32 Reads the 7-bit encoded value from the stream.
Public Extension Method ReadAll Reads all of the provided bytes. Will not return prematurely, but continue to execute a Read(Byte, Int32, Int32) command until the entire length has been read.
Public Extension Method ReadBoolean Reads the value from the stream in little endian format.
Public Extension Method ReadBytes(Stream) Reads a byte array from a Stream. The number of bytes should be prefixed in the stream.
Public Extension Method ReadBytes(Stream, Int32) Reads a byte array from a Stream. The number of bytes should be prefixed in the stream.
Public Extension Method ReadChar Reads the value from the stream in little endian format.
Public Extension Method ReadDateTime Reads the value from the stream in little endian format.
Public Extension Method ReadDecimal Reads a decimal from the stream in Little Endian bytes.
Public Extension Method ReadDouble Reads the value from the stream in little endian format.
Public Extension Method ReadGuid Reads a Guid from the stream in Little Endian bytes.
Public Extension Method ReadInt16 Reads the value from the stream in little endian format.
Public Extension Method ReadInt32 Reads the value from the stream in little endian format.
Public Extension Method ReadInt32Collection Writes the supplied string to a Stream in UTF8 encoding.
Public Extension Method ReadInt64 Reads the value from the stream in little endian format.
Public Extension Method ReadNextByte Read a byte from the stream. Will throw an exception if the end of the stream has been reached.
Public Extension Method ReadNullableString Reads a string from a Stream that was encoded in UTF8. Value can be null and is prefixed with a boolean.
Public Extension Method ReadObject Reads an object from a stream.
Public Extension Method ReadSByte Reads the value from the stream in little endian format.
Public Extension Method ReadSingle Reads the value from the stream in little endian format.
Public Extension Method ReadStream Reads entire Stream contents, and returns Byte array of data.
Public Extension Method ReadString Reads a string from a Stream that was encoded in UTF8.
Public Extension Method ReadStringCollection Writes the supplied string to a Stream in UTF8 encoding.
Public Extension Method ReadUInt16 Reads the value from the stream in little endian format.
Public Extension Method ReadUInt32 Reads the value from the stream in little endian format.
Public Extension Method ReadUInt64 Reads the value from the stream in little endian format.
Public Extension Method Write(Stream, Boolean) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, Byte) Writes the supplied value to in little endian format.
Public Extension Method Write(Stream, Byte) Writes the entire buffer to the stream
Public Extension Method Write(Stream, Char) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, DateTime) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, Decimal) Writes the supplied string to a Stream in UTF8 encoding.
Public Extension Method Write(Stream, Double) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, Guid) Writes a guid in little endian bytes to the stream
Public Extension Method Write(Stream, Int16) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, Int32) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, Int64) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, SByte) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, Single) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, String) Writes the supplied string to a Stream in UTF8 encoding.
Public Extension Method Write(Stream, UInt16) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, UInt32) Writes the supplied value to stream in little endian format.
Public Extension Method Write(Stream, UInt64) Writes the supplied value to stream in little endian format.
Public Extension Method WriteCollection(Stream, ICollectionInt32) Writes the supplied Collection to a Stream.
Public Extension Method WriteCollection(Stream, ICollectionString) Writes the supplied Collection to a Stream.
Public Extension Method WriteNullable Writes the supplied string to a Stream in UTF8 encoding with a prefix if the value is null
Public Extension Method WriteObject Encodes an object on a stream.
Public Extension Method WriteWithLength Writes the supplied value to stream along with prefixing the length so it can be properly read as a unit.
Top
See Also