Table of Contents

Class BinaryReaderExtensions

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public static class BinaryReaderExtensions
Inheritance
BinaryReaderExtensions
Inherited Members

Methods

ReadCMO_wchar(BinaryReader)

Loads a string from the CMO file (WCHAR prefixed with uint length)

public static string ReadCMO_wchar(this BinaryReader br)

Parameters

br BinaryReader

Returns

string

ReadStructure<T>(BinaryReader)

Read a structure from binary reader

public static T ReadStructure<T>(this BinaryReader br) where T : unmanaged

Parameters

br BinaryReader

Returns

T

Type Parameters

T

ReadStructure<T>(BinaryReader, int)

Read count instances of the structure from the binary reader.

public static T[] ReadStructure<T>(this BinaryReader br, int count) where T : unmanaged

Parameters

br BinaryReader
count int

Returns

T[]

Type Parameters

T

ReadUInt16(BinaryReader, int)

Read count UInt16s.

public static ushort[] ReadUInt16(this BinaryReader br, int count)

Parameters

br BinaryReader
count int

Returns

ushort[]