IBinaryInteger<TSelf>.TryReadBigEndian Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to read a two's complement number from a span, in big-endian format, and convert it to an instance of the current type.
public:
static bool TryReadBigEndian(ReadOnlySpan<System::Byte> source, bool isUnsigned, [Runtime::InteropServices::Out] TSelf % value);
public static abstract bool TryReadBigEndian (ReadOnlySpan<byte> source, bool isUnsigned, out TSelf value);
static member TryReadBigEndian : ReadOnlySpan<byte> * bool * 'Self -> bool
Public Shared Function TryReadBigEndian (source As ReadOnlySpan(Of Byte), isUnsigned As Boolean, ByRef value As TSelf) As Boolean
Parameters
- source
- ReadOnlySpan<Byte>
The span from which the two's complement number should be read.
- isUnsigned
- Boolean
true
if source
represents an unsigned two's complement number; otherwise, false
to indicate it represents a signed two's complement number.
- value
- TSelf
On return, contains the value read from source
or default
if a value could not be read.
Returns
true
if the value was successfully read from source
; otherwise, false
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor