Share via


SequenceReaderExtensions.TryReadLittleEndian Metodo

Definizione

Overload

TryReadLittleEndian(SequenceReader<Byte>, Int16)

Tenta di leggere un valore Int16 come little endian.

TryReadLittleEndian(SequenceReader<Byte>, Int32)

Tenta di leggere un valore Int32 come little endian.

TryReadLittleEndian(SequenceReader<Byte>, Int64)

Tenta di leggere un valore Int64 come little endian.

TryReadLittleEndian(SequenceReader<Byte>, Int16)

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

Tenta di leggere un valore Int16 come 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

Parametri

reader
SequenceReader<Byte>

Istanza del lettore della sequenza di byte da cui deve essere letto il valore.

value
Int16

Al termine del metodo, il valore letto dal lettore della sequenza di byte, come little endian.

Restituisce

true se l'operazione di lettura ha esito positivo; false se non ci sono dati sufficienti per Int16.

Si applica a

TryReadLittleEndian(SequenceReader<Byte>, Int32)

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

Tenta di leggere un valore Int32 come 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

Parametri

reader
SequenceReader<Byte>

Istanza del lettore della sequenza di byte da cui deve essere letto il valore.

value
Int32

Al termine del metodo, il valore letto dal lettore della sequenza di byte, come little endian.

Restituisce

true se l'operazione di lettura ha esito positivo; false se non ci sono dati sufficienti per Int32.

Si applica a

TryReadLittleEndian(SequenceReader<Byte>, Int64)

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

Tenta di leggere un valore Int64 come 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

Parametri

reader
SequenceReader<Byte>

Istanza del lettore della sequenza di byte da cui deve essere letto il valore.

value
Int64

Al termine del metodo, il valore letto dal lettore della sequenza di byte, come little endian.

Restituisce

true se l'operazione di lettura ha esito positivo; false se non ci sono dati sufficienti per Int64.

Si applica a