C# Class BinaryReaderWriterExtensions, csharputils

Exibir arquivo Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
ReadSingleEndian ( this BinaryReader, Endianness Endian ) : float
ReadUint16Endian ( this BinaryReader, Endianness Endian ) : ushort
ReadUint32Endian ( this BinaryReader, Endianness Endian ) : uint
ReverseBytes ( this Bytes ) : byte[]
WriteEndian ( this BinaryWriter, uint Value, Endianness Endian ) : void
WriteEndian ( this BinaryWriter, ushort Value, Endianness Endian ) : void

Method Details

ReadSingleEndian() public static method

public static ReadSingleEndian ( this BinaryReader, Endianness Endian ) : float
BinaryReader this
Endian Endianness
return float

ReadUint16Endian() public static method

public static ReadUint16Endian ( this BinaryReader, Endianness Endian ) : ushort
BinaryReader this
Endian Endianness
return ushort

ReadUint32Endian() public static method

public static ReadUint32Endian ( this BinaryReader, Endianness Endian ) : uint
BinaryReader this
Endian Endianness
return uint

ReverseBytes() public static method

public static ReverseBytes ( this Bytes ) : byte[]
Bytes this
return byte[]

WriteEndian() public static method

public static WriteEndian ( this BinaryWriter, uint Value, Endianness Endian ) : void
BinaryWriter this
Value uint
Endian Endianness
return void

WriteEndian() public static method

public static WriteEndian ( this BinaryWriter, ushort Value, Endianness Endian ) : void
BinaryWriter this
Value ushort
Endian Endianness
return void