語言

IBinaryInteger<TSelf>.ReadLittleEndian 方法

定義

多載

名稱 Description
ReadLittleEndian(ReadOnlySpan<Byte>, Boolean)

讀取給定張幅中二補數(小端序格式),並將其轉換為當前類型的實例。

ReadLittleEndian(Byte[], Int32, Boolean)

從給定陣列中讀取 2 補數,格式為小端序格式,並將其轉換為當前類型的實例。

ReadLittleEndian(Byte[], Boolean)

從給定陣列中讀取 2 補數,格式為小端序格式,並將其轉換為當前類型的實例。

ReadLittleEndian(ReadOnlySpan<Byte>, Boolean)

來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs

讀取給定張幅中二補數(小端序格式),並將其轉換為當前類型的實例。

public:
 static override TSelf ReadLittleEndian(ReadOnlySpan<System::Byte> source, bool isUnsigned);
public static virtual TSelf ReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned);
static member ReadLittleEndian : ReadOnlySpan<byte> * bool -> 'Self
Public Shared Overrides Function ReadLittleEndian (source As ReadOnlySpan(Of Byte), isUnsigned As Boolean) As TSelf

參數

source
ReadOnlySpan<Byte>

應從中讀取二補數的陣列。

isUnsigned
Boolean

true 若 source 代表無符號二的補數;否則表示 false 代表有符號二的補數。

傳回

TSelf

該值從 讀出。source

例外狀況

source 無法由 表示 TSelf

適用於

ReadLittleEndian(Byte[], Int32, Boolean)

來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs

從給定陣列中讀取 2 補數,格式為小端序格式,並將其轉換為當前類型的實例。

public:
 static override TSelf ReadLittleEndian(cli::array <System::Byte> ^ source, int startIndex, bool isUnsigned);
public static virtual TSelf ReadLittleEndian(byte[] source, int startIndex, bool isUnsigned);
static member ReadLittleEndian : byte[] * int * bool -> 'Self
Public Shared Overrides Function ReadLittleEndian (source As Byte(), startIndex As Integer, isUnsigned As Boolean) As TSelf

參數

source
Byte[]

應從中讀取二補數的陣列。

startIndex
Int32

應讀取該值的起始索引。

isUnsigned
Boolean

true 若 source 代表無符號二的補數;否則表示 false 代表有符號二的補數。

傳回

TSelf

從 開始startIndex的值讀出source。

例外狀況

source 無法由 表示 TSelf

適用於

ReadLittleEndian(Byte[], Boolean)

來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs
來源:
IBinaryInteger.cs

從給定陣列中讀取 2 補數,格式為小端序格式,並將其轉換為當前類型的實例。

public:
 static override TSelf ReadLittleEndian(cli::array <System::Byte> ^ source, bool isUnsigned);
public static virtual TSelf ReadLittleEndian(byte[] source, bool isUnsigned);
static member ReadLittleEndian : byte[] * bool -> 'Self
Public Shared Overrides Function ReadLittleEndian (source As Byte(), isUnsigned As Boolean) As TSelf

參數

source
Byte[]

應從中讀取二補數的陣列。

isUnsigned
Boolean

true 若 source 代表無符號二的補數;否則表示 false 代表有符號二的補數。

傳回

TSelf

該值從 讀出。source

例外狀況

source 無法由 表示 TSelf

適用於