C# Класс Wxv.Swg.Common.StreamExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
CopyTo ( this source, Stream target ) : void
ReadBytes ( this stream ) : byte[]
ReadBytes ( this stream, int count ) : byte[]
ReadInt16 ( this stream ) : Int16
ReadInt32 ( this stream ) : Int32
ReadInt32BE ( this stream ) : Int32
ReadSingle ( this stream ) : System.Single
ReadSingleBE ( this stream ) : System.Single
ReadString ( this stream, Encoding encoding = null, bool trim = true ) : string
ReadString ( this stream, int length, Encoding encoding = null, bool trim = true ) : string
ReadStringList ( this stream, Encoding encoding = null, bool trim = true ) : string[]

Описание методов

CopyTo() публичный статический Метод

public static CopyTo ( this source, Stream target ) : void
source this
target Stream
Результат void

ReadBytes() публичный статический Метод

public static ReadBytes ( this stream ) : byte[]
stream this
Результат byte[]

ReadBytes() публичный статический Метод

public static ReadBytes ( this stream, int count ) : byte[]
stream this
count int
Результат byte[]

ReadInt16() публичный статический Метод

public static ReadInt16 ( this stream ) : Int16
stream this
Результат System.Int16

ReadInt32() публичный статический Метод

public static ReadInt32 ( this stream ) : Int32
stream this
Результат System.Int32

ReadInt32BE() публичный статический Метод

public static ReadInt32BE ( this stream ) : Int32
stream this
Результат System.Int32

ReadSingle() публичный статический Метод

public static ReadSingle ( this stream ) : System.Single
stream this
Результат System.Single

ReadSingleBE() публичный статический Метод

public static ReadSingleBE ( this stream ) : System.Single
stream this
Результат System.Single

ReadString() публичный статический Метод

public static ReadString ( this stream, Encoding encoding = null, bool trim = true ) : string
stream this
encoding System.Text.Encoding
trim bool
Результат string

ReadString() публичный статический Метод

public static ReadString ( this stream, int length, Encoding encoding = null, bool trim = true ) : string
stream this
length int
encoding System.Text.Encoding
trim bool
Результат string

ReadStringList() публичный статический Метод

public static ReadStringList ( this stream, Encoding encoding = null, bool trim = true ) : string[]
stream this
encoding System.Text.Encoding
trim bool
Результат string[]