Muokkaa

Jaa


BitConverter.ToUInt128 Method

Definition

Overloads

ToUInt128(ReadOnlySpan<Byte>)

Converts a read-only byte span into a 128-bit unsigned integer.

ToUInt128(Byte[], Int32)

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

ToUInt128(ReadOnlySpan<Byte>)

Source:
BitConverter.cs

Important

This API is not CLS-compliant.

Converts a read-only byte span into a 128-bit unsigned integer.

public:
 static UInt128 ToUInt128(ReadOnlySpan<System::Byte> value);
[System.CLSCompliant(false)]
public static UInt128 ToUInt128 (ReadOnlySpan<byte> value);
[<System.CLSCompliant(false)>]
static member ToUInt128 : ReadOnlySpan<byte> -> UInt128
Public Shared Function ToUInt128 (value As ReadOnlySpan(Of Byte)) As UInt128

Parameters

value
ReadOnlySpan<Byte>

A read-only span containing the bytes to convert.

Returns

A 128-bit unsigned integer representing the converted bytes.

Attributes

Exceptions

The length of value is less than 16.

Applies to

ToUInt128(Byte[], Int32)

Source:
BitConverter.cs

Important

This API is not CLS-compliant.

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

public:
 static UInt128 ToUInt128(cli::array <System::Byte> ^ value, int startIndex);
[System.CLSCompliant(false)]
public static UInt128 ToUInt128 (byte[] value, int startIndex);
[<System.CLSCompliant(false)>]
static member ToUInt128 : byte[] * int -> UInt128
Public Shared Function ToUInt128 (value As Byte(), startIndex As Integer) As UInt128

Parameters

value
Byte[]

An array of bytes.

startIndex
Int32

The starting position within value.

Returns

A 128-bit unsigned integer formed by sixteen bytes beginning at startIndex.

Attributes

Exceptions

startIndex is greater than or equal to the length of value minus 15, and is less than or equal to the length of value minus 1.

value is null.

startIndex is less than zero or greater than the length of value minus 1.

Applies to