Click or drag to resize

HalfTypeToHalf Method (Byte, Int32)

Returns a half-precision floating point number converted from two bytes at a specified position in a byte array.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static HalfType ToHalf(
	byte[] value,
	int startIndex
)

Parameters

value
Type: SystemByte
An array of bytes.
startIndex
Type: SystemInt32
The starting position within value.

Return Value

Type: HalfType
A half-precision floating point number formed by two bytes beginning at startIndex.
Exceptions
ExceptionCondition
ArgumentException startIndex is greater than or equal to the length of value minus 1, and is less than or equal to the length of value minus 1.
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeExceptionstartIndex is less than zero or greater than the length of value minus 1.
See Also