Table of Contents

Class StreamUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains Stream related static methods.

public static class StreamUtils
Inheritance
StreamUtils

Fields

Empty

Gets an empty stream.

Methods

AreEqual(MemoryStream, MemoryStream)

Compares two memory streams using byte to byte comparison.

AreEqual(Stream, Stream)

Compares two streams using byte to byte comparison.

CopyStream(Stream, string)

Copies stream to the file with the specified path.

CreateMemoryStream(Stream?)

Creates MemoryStream with data copied from the specified stream.

StringFromStream(Stream, Encoding?)

Reads string from Stream using the specified encoding.

StringToStream(Stream, string, Encoding?)

Writes string to Stream using the specified encoding.