Class Leap::BitConverterNonAlloc

class Leap.BitConverterNonAlloc

Public Static Functions

static UInt16 ToUInt16 (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the UInt16 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static Int16 ToInt16 (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the Int16 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static UInt32 ToUInt32 (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the UInt32 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static Int32 ToInt32 (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the Int32 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static UInt64 ToUInt64 (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the UInt64 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static Int64 ToInt64 (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the Int64 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static Single ToSingle (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the Single value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static Double ToDouble (byte[] bytes, int offset = 0)

Given an array of bytes, and an offset to start reading from, return the Double value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

static UInt16 ToUInt16 (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the UInt16 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the UInt16 in bytes after this method is complete.

static Int16 ToInt16 (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the Int16 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the Int16 in bytes after this method is complete.

static UInt32 ToUInt32 (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the UInt32 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the UInt32 in bytes after this method is complete.

static Int32 ToInt32 (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the Int32 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the Int32 in bytes after this method is complete.

static UInt64 ToUInt64 (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the UInt64 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the UInt64 in bytes after this method is complete.

static Int64 ToInt64 (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the Int64 value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the Int64 in bytes after this method is complete.

static Single ToSingle (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the Single value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the Single in bytes after this method is complete.

static Double ToDouble (byte[] bytes, ref int offset)

Given an array of bytes, and an offset to start reading from, return the Double value that is represented by that byte pattern. Undefined results if there are not enough bytes in the array.

The offset variable is incremented by the size of the Double in bytes after this method is complete.

static void GetBytes (UInt16 value, byte[] bytes, int offset = 0)

Given a UInt16 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (Int16 value, byte[] bytes, int offset = 0)

Given a Int16 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (UInt32 value, byte[] bytes, int offset = 0)

Given a UInt32 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (Int32 value, byte[] bytes, int offset = 0)

Given a Int32 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (UInt64 value, byte[] bytes, int offset = 0)

Given a UInt64 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (Int64 value, byte[] bytes, int offset = 0)

Given a Int64 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (Single value, byte[] bytes, int offset = 0)

Given a Single value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (Double value, byte[] bytes, int offset = 0)

Given a Double value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

static void GetBytes (UInt16 value, byte[] bytes, ref int offset)

Given a UInt16 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the UInt16 in bytes after this method is complete.

static void GetBytes (Int16 value, byte[] bytes, ref int offset)

Given a Int16 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the Int16 in bytes after this method is complete.

static void GetBytes (UInt32 value, byte[] bytes, ref int offset)

Given a UInt32 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the UInt32 in bytes after this method is complete.

static void GetBytes (Int32 value, byte[] bytes, ref int offset)

Given a Int32 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the Int32 in bytes after this method is complete.

static void GetBytes (UInt64 value, byte[] bytes, ref int offset)

Given a UInt64 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the UInt64 in bytes after this method is complete.

static void GetBytes (Int64 value, byte[] bytes, ref int offset)

Given a Int64 value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the Int64 in bytes after this method is complete.

static void GetBytes (Single value, byte[] bytes, ref int offset)

Given a Single value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the Single in bytes after this method is complete.

static void GetBytes (Double value, byte[] bytes, ref int offset)

Given a Double value, copy its binary representation into the given array of bytes, at the given offset. Undefined results if there are not enough bytes in the array to accept the value.

The offset variable is incremented by the size of the Double in bytes after this method is complete.