IBinaryInteger<TSelf>.TryReadLittleEndian 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 little-endian format, and convert it to an instance of the current type.
public:
static bool TryReadLittleEndian(ReadOnlySpan<System::Byte> source, bool isUnsigned, [Runtime::InteropServices::Out] TSelf % value);
public static abstract bool TryReadLittleEndian (ReadOnlySpan<byte> source, bool isUnsigned, out TSelf value);
static member TryReadLittleEndian : ReadOnlySpan<byte> * bool * 'Self -> bool
Public Shared Function TryReadLittleEndian (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
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за