IBinaryInteger<TSelf>.ReadLittleEndian 方法

定義

多載

ReadLittleEndian(Byte[], Boolean)

從指定數位讀取兩個補碼編號,以小到尾格式,並將它轉換成目前類型的實例。

ReadLittleEndian(ReadOnlySpan<Byte>, Boolean)

從指定範圍的兩個補碼編號,以小到尾格式讀取,並將它轉換成目前類型的實例。

ReadLittleEndian(Byte[], Int32, Boolean)

從指定數位讀取兩個補碼編號,以小到尾格式,並將它轉換成目前類型的實例。

ReadLittleEndian(Byte[], Boolean)

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

從指定數位讀取兩個補碼編號,以小到尾格式,並將它轉換成目前類型的實例。

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

適用於

ReadLittleEndian(ReadOnlySpan<Byte>, Boolean)

來源:
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

從指定數位讀取兩個補碼編號,以小到尾格式,並將它轉換成目前類型的實例。

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

source 開始 startIndex讀取的值。

例外狀況

source 無法表示者 TSelf

適用於