Click or drag to resize

EndianBitConverter.ToUInt16 Method

Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public ushort ToUInt16(
	byte[] value,
	int startIndex
)

Parameters

value
Type:System.Byte[]
An array of bytes.
startIndex
Type: System.Int32
The starting position within value.

Return Value

Type: UInt16
A 16-bit unsigned integer formed by two bytes beginning at startIndex.
See Also