Edit

Share via


SequenceReaderExtensions.TryReadBigEndian Method

Definition

Overloads

TryReadBigEndian(SequenceReader<Byte>, Int16)

Tries to read an Int16 as big endian.

TryReadBigEndian(SequenceReader<Byte>, Int32)

Tries to read an Int32 as big endian.

TryReadBigEndian(SequenceReader<Byte>, Int64)

Tries to read an Int64 as big endian.

TryReadBigEndian(SequenceReader<Byte>, Int16)

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

Tries to read an Int16 as big endian.

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryReadBigEndian(System::Buffers::SequenceReader<System::Byte> % reader, [Runtime::InteropServices::Out] short % value);
public static bool TryReadBigEndian (this ref System.Buffers.SequenceReader<byte> reader, out short value);
static member TryReadBigEndian : SequenceReader * int16 -> bool
<Extension()>
Public Function TryReadBigEndian (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 big endian.

Returns

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

Applies to

TryReadBigEndian(SequenceReader<Byte>, Int32)

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

Tries to read an Int32 as big endian.

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

Parameters

reader
SequenceReader<Byte>

The byte sequence reader from which to read the value.

value
Int32

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

Returns

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

Applies to

TryReadBigEndian(SequenceReader<Byte>, Int64)

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

Tries to read an Int64 as big endian.

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryReadBigEndian(System::Buffers::SequenceReader<System::Byte> % reader, [Runtime::InteropServices::Out] long % value);
public static bool TryReadBigEndian (this ref System.Buffers.SequenceReader<byte> reader, out long value);
static member TryReadBigEndian : SequenceReader * int64 -> bool
<Extension()>
Public Function TryReadBigEndian (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 big endian.

Returns

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

Applies to