C# Класс BinaryReaderExtensions, UnityRose

A collection of extensions for the BinaryReader class.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultEncoding Encoding

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

Метод Описание
ReadByteString ( this reader ) : string

Reads a string with a pre-fixed length as a 8-bit integer from the underlying stream.

ReadByteString ( this reader, Encoding encoding ) : string

Reads a string with a pre-fixed length as a 8-bit integer from the underlying stream.

ReadColour3 ( this reader ) : Color

Reads a colour from the underlying stream.

ReadColour4 ( this reader ) : Color

Reads a colour from the underlying stream.

ReadIntString ( this reader ) : string

Reads a string with a pre-fixed length as a 32-bit integer from the underlying stream.

ReadIntString ( this reader, Encoding encoding ) : string

Reads a string with a pre-fixed length as a 32-bit integer from the underlying stream.

ReadMatrix ( this reader ) : Matrix4x4

Reads a matrix from the underlying stream.

ReadNullTerminatedString ( this reader ) : string

Reads a null-terminated string from the current stream.

ReadNullTerminatedString ( this reader, Encoding encoding ) : string

Reads a null-terminated string from the current stream.

ReadQuaternion ( this reader, bool w = false ) : Quaternion

Reads a quaternion from the underlying stream.

ReadShortString ( this reader ) : string

Reads a string with a pre-fixed length as a 16-bit integer from the underlying stream.

ReadShortString ( this reader, Encoding encoding ) : string

Reads a string with a pre-fixed length as a 16-bit integer from the underlying stream.

ReadShortVector3 ( this reader ) : ShortVector3

Reads a vector from the underlying stream.

ReadShortVector4 ( this reader ) : ShortVector4

Reads a vector from the underlying stream.

ReadString ( this reader, int length ) : string

Reads a fixed-length string from the underlying stream.

ReadString ( this reader, int length, Encoding encoding ) : string

Reads a fixed-length string from the underlying stream.

ReadVector2 ( this reader ) : Vector2

Reads a vector from the underlying stream.

ReadVector3 ( this reader ) : Vector3

Reads a vector from the underlying stream.

ReadVector4 ( this reader ) : Vector4

Reads a vector from the underlying stream.

Приватные методы

Метод Описание
BinaryReaderExtensions ( ) : System.Collections.Generic

Initializes the BinaryReaderExtensions class.

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

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

Reads a string with a pre-fixed length as a 8-bit integer from the underlying stream.
public static ReadByteString ( this reader ) : string
reader this
Результат string

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

Reads a string with a pre-fixed length as a 8-bit integer from the underlying stream.
public static ReadByteString ( this reader, Encoding encoding ) : string
reader this
encoding Encoding
Результат string

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

Reads a colour from the underlying stream.
public static ReadColour3 ( this reader ) : Color
reader this
Результат Color

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

Reads a colour from the underlying stream.
public static ReadColour4 ( this reader ) : Color
reader this
Результат Color

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

Reads a string with a pre-fixed length as a 32-bit integer from the underlying stream.
public static ReadIntString ( this reader ) : string
reader this
Результат string

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

Reads a string with a pre-fixed length as a 32-bit integer from the underlying stream.
public static ReadIntString ( this reader, Encoding encoding ) : string
reader this
encoding Encoding
Результат string

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

Reads a matrix from the underlying stream.
public static ReadMatrix ( this reader ) : Matrix4x4
reader this
Результат Matrix4x4

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

Reads a null-terminated string from the current stream.
public static ReadNullTerminatedString ( this reader ) : string
reader this
Результат string

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

Reads a null-terminated string from the current stream.
public static ReadNullTerminatedString ( this reader, Encoding encoding ) : string
reader this
encoding Encoding The character encoding.
Результат string

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

Reads a quaternion from the underlying stream.
public static ReadQuaternion ( this reader, bool w = false ) : Quaternion
reader this The reader.
w bool if set to true the value is read in the order WXYZ, else XYZW.
Результат Quaternion

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

Reads a string with a pre-fixed length as a 16-bit integer from the underlying stream.
public static ReadShortString ( this reader ) : string
reader this
Результат string

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

Reads a string with a pre-fixed length as a 16-bit integer from the underlying stream.
public static ReadShortString ( this reader, Encoding encoding ) : string
reader this
encoding Encoding
Результат string

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

Reads a vector from the underlying stream.
public static ReadShortVector3 ( this reader ) : ShortVector3
reader this
Результат ShortVector3

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

Reads a vector from the underlying stream.
public static ReadShortVector4 ( this reader ) : ShortVector4
reader this
Результат ShortVector4

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

Reads a fixed-length string from the underlying stream.
public static ReadString ( this reader, int length ) : string
reader this
length int The length of the string.
Результат string

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

Reads a fixed-length string from the underlying stream.
public static ReadString ( this reader, int length, Encoding encoding ) : string
reader this
length int The length of the string.
encoding Encoding The character encoding.
Результат string

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

Reads a vector from the underlying stream.
public static ReadVector2 ( this reader ) : Vector2
reader this
Результат Vector2

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

Reads a vector from the underlying stream.
public static ReadVector3 ( this reader ) : Vector3
reader this
Результат Vector3

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

Reads a vector from the underlying stream.
public static ReadVector4 ( this reader ) : Vector4
reader this
Результат Vector4

Описание свойств

DefaultEncoding публичное статическое свойство

The default encoding to be used when reading strings.
public static Encoding DefaultEncoding
Результат Encoding