Share via


BinaryPrimitives.TryReadInt16LittleEndian 메서드

정의

바이트의 읽기 전용 범위부터 시작하여 Int16을 little endian으로 읽습니다.

public:
 static bool TryReadInt16LittleEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] short % value);
public static bool TryReadInt16LittleEndian (ReadOnlySpan<byte> source, out short value);
static member TryReadInt16LittleEndian : ReadOnlySpan<byte> * int16 -> bool
Public Shared Function TryReadInt16LittleEndian (source As ReadOnlySpan(Of Byte), ByRef value As Short) As Boolean

매개 변수

source
ReadOnlySpan<Byte>

읽을 바이트의 읽기 전용 범위입니다.

value
Int16

이 메서드가 반환될 때 바이트의 읽기 전용 범위에서 읽은 값을 little endian으로 포함합니다.

반환

범위가 Int16를 포함할 정도로 충분히 크면 true이고, 그렇지 않으면 false입니다.

설명

범위의 시작 부분에서 정확히 2바이트를 읽습니다.

적용 대상