Click or drag to resize

ByteConverter Class

Represents a BitConverter which handles a specific endianness.
Inheritance Hierarchy

Namespace:  Syroot.BinaryData
Assembly:  Syroot.BinaryData (in Syroot.BinaryData.dll) Version: 5.0.0-beta1
Syntax
public abstract class ByteConverter

The ByteConverter type exposes the following members.

Constructors
  NameDescription
Protected methodByteConverter
Initializes a new instance of the ByteConverter class.
Top
Properties
  NameDescription
Public propertyStatic memberBig
Gets a ByteConverter instance converting data stored in big endian byte order.
Public propertyEndian
Gets the Endian in which data is stored as converted by this instance.
Public propertyStatic memberLittle
Gets a ByteConverter instance converting data stored in little endian byte order.
Public propertyStatic memberSystem
Gets a ByteConverter instance converting data stored in the byte order of the system executing the assembly.
Top
Methods
  NameDescription
Public methodStatic memberGetBytes(Decimal, Byte, Int32)
Stores the specified Decimal value as bytes in the given buffer.
Public methodGetBytes(Double, Byte, Int32)
Stores the specified Double value as bytes in the given buffer.
Public methodGetBytes(Int16, Byte, Int32)
Stores the specified Int16 value as bytes in the given buffer.
Public methodGetBytes(Int32, Byte, Int32)
Stores the specified Int32 value as bytes in the given buffer.
Public methodGetBytes(Int64, Byte, Int32)
Stores the specified Int64 value as bytes in the given buffer.
Public methodGetBytes(Single, Byte, Int32)
Stores the specified Single value as bytes in the given buffer.
Public methodGetBytes(UInt16, Byte, Int32)
Stores the specified UInt16 value as bytes in the given buffer.
Public methodGetBytes(UInt32, Byte, Int32)
Stores the specified UInt32 value as bytes in the given buffer.
Public methodGetBytes(UInt64, Byte, Int32)
Stores the specified UInt64 value as bytes in the given buffer.
Public methodStatic memberGetConverter
Returns a ByteConverter for the given byteOrder.
Public methodStatic memberToDecimal
Returns an Decimal instance converted from the bytes in the given buffer.
Public methodToDouble
Returns an Double instance converted from the bytes in the given buffer.
Public methodToInt16
Returns an Int16 instance converted from the bytes in the given buffer.
Public methodToInt32
Returns an Int32 instance converted from the bytes in the given buffer.
Public methodToInt64
Returns an Int64 instance converted from the bytes in the given buffer.
Public methodToSingle
Returns an Single instance converted from the bytes in the given buffer.
Public methodToUInt16
Returns an UInt16 instance converted from the bytes in the given buffer.
Public methodToUInt32
Returns an UInt32 instance converted from the bytes in the given buffer.
Public methodToUInt64
Returns an UInt64 instance converted from the bytes in the given buffer.
Top
Fields
  NameDescription
Protected fieldStatic memberBufferException
The exception thrown if a conversion buffer is too small or null.
Top
See Also