|
Int24GetValue Method
|
Returns a 24-bit signed integer from three bytes at a specified position in a byte array.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic static Int24 GetValue(
byte[] value,
int startIndex
)
Public Shared Function GetValue (
value As Byte(),
startIndex As Integer
) As Int24
static member GetValue :
value : byte[] *
startIndex : int -> Int24 GSF.Int24.GetValue = function(value, startIndex);
View SourceParameters
- value Byte
- An array of bytes.
- startIndex Int32
- The starting position within value.
Return Value
Int24A 24-bit signed integer formed by three bytes beginning at startIndex.
Exceptions
RemarksYou can use this function in-lieu of a System.BitConverter.ToInt24 function.
Bytes endian order assumed to match that of currently executing process architecture (little-endian on Intel platforms).
See Also