System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsInteger

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetValueAsInteger(Offset: Integer = 0;  AFormatType: TBluetoothGattFormatType = TBluetoothGattFormatType.Signed32bitInteger): Integer;

C++

int __fastcall GetValueAsInteger(int Offset = 0x0, TBluetoothGattFormatType AFormatType = (TBluetoothGattFormatType)(0x10));

プロパティ

種類 可視性 ソース ユニット
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothGattCharacteristic


説明

特性Value を整数値で返します。


GetValueAsInteger は次の 2 つの引数を想定しています:

  • Offsetバイトの配列のインデックス値。Offset のデフォルト値は 0 で、配列の最初の位置を示します。
  • AFormatTypeValue を取得するために使用される整数の型。
AFormatType 取得メソッド
Unsigned8bitInteger GetValueAsUInt8
Unsigned16bitInteger GetValueAsUInt16
Unsigned32bitInteger GetValueAsUInt32
Signed8bitInteger GetValueAsInt8
Signed16bitInteger GetValueAsInt16
Signed32bitInteger GetValueAsInt32

AFormatType は、上記表示には含まれていません。形式例外が発生します。

関連項目