共用方式為


SequenceReaderExtensions.TryReadLittleEndian 方法

定義

多載

TryReadLittleEndian(SequenceReader<Byte>, Int16)

嘗試以位元組由小到大的方式讀取 Int16

TryReadLittleEndian(SequenceReader<Byte>, Int32)

嘗試以位元組由小到大的方式讀取 Int32

TryReadLittleEndian(SequenceReader<Byte>, Int64)

嘗試以位元組由小到大的方式讀取 Int64

TryReadLittleEndian(SequenceReader<Byte>, Int16)

來源:
SequenceReaderExtensions.Binary.cs
來源:
SequenceReaderExtensions.Binary.cs
來源:
SequenceReaderExtensions.Binary.cs

嘗試以位元組由小到大的方式讀取 Int16

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryReadLittleEndian(System::Buffers::SequenceReader<System::Byte> % reader, [Runtime::InteropServices::Out] short % value);
public static bool TryReadLittleEndian (this ref System.Buffers.SequenceReader<byte> reader, out short value);
static member TryReadLittleEndian : SequenceReader * int16 -> bool
<Extension()>
Public Function TryReadLittleEndian (ByRef reader As SequenceReader(Of Byte), ByRef value As Short) As Boolean

參數

reader
SequenceReader<Byte>

要從中讀取值的位元組序列讀取器執行個體。

value
Int16

當此方法傳回時,會以位元組由小到大的方式,從位元組序列讀取器讀取值。

傳回

如果讀取作業成功,則為 true;如果 Int16 沒有足夠的資料,則為 false

適用於

TryReadLittleEndian(SequenceReader<Byte>, Int32)

來源:
SequenceReaderExtensions.Binary.cs
來源:
SequenceReaderExtensions.Binary.cs
來源:
SequenceReaderExtensions.Binary.cs

嘗試以位元組由小到大的方式讀取 Int32

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryReadLittleEndian(System::Buffers::SequenceReader<System::Byte> % reader, [Runtime::InteropServices::Out] int % value);
public static bool TryReadLittleEndian (this ref System.Buffers.SequenceReader<byte> reader, out int value);
static member TryReadLittleEndian : SequenceReader * int -> bool
<Extension()>
Public Function TryReadLittleEndian (ByRef reader As SequenceReader(Of Byte), ByRef value As Integer) As Boolean

參數

reader
SequenceReader<Byte>

要從中讀取值的位元組序列讀取器執行個體。

value
Int32

當此方法傳回時,會以位元組由小到大的方式,從位元組序列讀取器讀取值。

傳回

如果讀取作業成功,則為 true;如果 Int32 沒有足夠的資料,則為 false

適用於

TryReadLittleEndian(SequenceReader<Byte>, Int64)

來源:
SequenceReaderExtensions.Binary.cs
來源:
SequenceReaderExtensions.Binary.cs
來源:
SequenceReaderExtensions.Binary.cs

嘗試以位元組由小到大的方式讀取 Int64

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryReadLittleEndian(System::Buffers::SequenceReader<System::Byte> % reader, [Runtime::InteropServices::Out] long % value);
public static bool TryReadLittleEndian (this ref System.Buffers.SequenceReader<byte> reader, out long value);
static member TryReadLittleEndian : SequenceReader * int64 -> bool
<Extension()>
Public Function TryReadLittleEndian (ByRef reader As SequenceReader(Of Byte), ByRef value As Long) As Boolean

參數

reader
SequenceReader<Byte>

要從中讀取值的位元組序列讀取器執行個體。

value
Int64

當此方法傳回時,會以位元組由小到大的方式,從位元組序列讀取器讀取值。

傳回

如果讀取作業成功,則為 true;如果 Int64 沒有足夠的資料,則為 false

適用於