แก้ไข

แชร์ผ่าน


SequenceReaderExtensions.TryReadLittleEndian Method

Definition

Overloads

TryReadLittleEndian(SequenceReader<Byte>, Int16)

Tries to read an Int16 as little endian.

TryReadLittleEndian(SequenceReader<Byte>, Int32)

Tries to read an Int32 as little endian.

TryReadLittleEndian(SequenceReader<Byte>, Int64)

Tries to read an Int64 as little endian.

TryReadLittleEndian(SequenceReader<Byte>, Int16)

Source:
SequenceReaderExtensions.Binary.cs
Source:
SequenceReaderExtensions.Binary.cs
Source:
SequenceReaderExtensions.Binary.cs

Tries to read an Int16 as little endian.

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

Parameters

reader
SequenceReader<Byte>

The byte sequence reader instance from which the value is to be read.

value
Int16

When the method returns, the value read out of the byte sequence reader, as little endian.

Returns

true if the read operation is successful; false if there isn't enough data for an Int16.

Applies to

TryReadLittleEndian(SequenceReader<Byte>, Int32)

Source:
SequenceReaderExtensions.Binary.cs
Source:
SequenceReaderExtensions.Binary.cs
Source:
SequenceReaderExtensions.Binary.cs

Tries to read an Int32 as little endian.

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

Parameters

reader
SequenceReader<Byte>

The byte sequence reader instance from which the value is to be read.

value
Int32

When the method returns, the value read out of the byte sequence reader, as little endian.

Returns

true if the read operation is successful; false if there isn't enough data for an Int32.

Applies to

TryReadLittleEndian(SequenceReader<Byte>, Int64)

Source:
SequenceReaderExtensions.Binary.cs
Source:
SequenceReaderExtensions.Binary.cs
Source:
SequenceReaderExtensions.Binary.cs

Tries to read an Int64 as little endian.

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

Parameters

reader
SequenceReader<Byte>

The byte sequence reader instance from which the value is to be read.

value
Int64

When the method returns, the value read out of the byte sequence reader, as little endian.

Returns

true if the read operation is successful; false if there isn't enough data for an Int64.

Applies to