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
brBinaryReader
Returns
ReadStructure<T>(BinaryReader)
Read a structure from binary reader
public static T ReadStructure<T>(this BinaryReader br) where T : unmanaged
Parameters
brBinaryReader
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
brBinaryReadercountint
Returns
- T[]
Type Parameters
T
ReadUInt16(BinaryReader, int)
Read count UInt16s.
public static ushort[] ReadUInt16(this BinaryReader br, int count)
Parameters
brBinaryReadercountint
Returns
- ushort[]