System::BitConverter::ToInt16-methode

BitConverter::ToInt16(const System::ArrayPtr<uint8_t>&, int) method

Converteert twee bytes uit de opgegeven array, beginnend op de opgegeven index, naar een 16-bit integerwaarde.

static int16_t System::BitConverter::ToInt16(const System::ArrayPtr<uint8_t> &value, int startIndex)
ParameterTypeBeschrijving
valueconst System::ArrayPtr<uint8_t>&Array die bytes bevat om te converteren
startIndexintIndex in de array waarop de bytes voor conversie moeten worden genomen

ReturnValue

16-bits geheel getal dat voortkomt uit de conversie

Zie ook

BitConverter::ToInt16(const System::Details::ArrayView<uint8_t>&, int) method

Converteert twee bytes uit de opgegeven array, beginnend op de opgegeven index, naar een 16-bit integerwaarde.

static int16_t System::BitConverter::ToInt16(const System::Details::ArrayView<uint8_t> &value, int startIndex)
ParameterTypeBeschrijving
valueconst System::Details::ArrayView<uint8_t>&ArrayView die bytes bevat om te converteren
startIndexintIndex in de array waarop de bytes voor conversie moeten worden genomen

ReturnValue

16-bits geheel getal dat voortkomt uit de conversie

Zie ook