Språk

BitConverter.ToUInt128 Metod

Definition

Överlagringar

Name Description
ToUInt128(ReadOnlySpan<Byte>)

Konverterar ett skrivskyddat byteintervall till ett 128-bitars osignerat heltal.

ToUInt128(Byte[], Int32)

Returnerar ett 128-bitars osignerat heltal som konverterats från sexton byte vid en angiven position i en bytematris.

ToUInt128(ReadOnlySpan<Byte>)

Källa:
BitConverter.cs
Källa:
BitConverter.cs
Källa:
BitConverter.cs

Viktigt!

Detta API uppfyller inte CLS.

Konverterar ett skrivskyddat byteintervall till ett 128-bitars osignerat heltal.

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

Parametrar

value
ReadOnlySpan<Byte>

Ett skrivskyddat intervall som innehåller de byte som ska konverteras.

Returer

Ett 128-bitars osignerat heltal som representerar konverterade byte.

Attribut

Undantag

Längden value på är mindre än 16.

Gäller för

ToUInt128(Byte[], Int32)

Källa:
BitConverter.cs
Källa:
BitConverter.cs
Källa:
BitConverter.cs

Viktigt!

Detta API uppfyller inte CLS.

Returnerar ett 128-bitars osignerat heltal som konverterats från sexton byte vid en angiven position i en bytematris.

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

Parametrar

value
Byte[]

En matris med byte.

startIndex
Int32

Startpositionen inom value.

Returer

Ett 128-bitars osignerat heltal bildat av sexton byte med början vid startIndex.

Attribut

Undantag

startIndex är större än eller lika med längden value på minus 15 och är mindre än eller lika med längden value på minus 1.

value är null.

startIndex är mindre än noll eller större än längden value på minus 1.

Gäller för