System.Bluetooth.TBluetoothGattCharacteristic.GetValueAsInteger
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
で、配列の最初の位置を示します。
AFormatType
: Value を取得するために使用される整数の型。
AFormatType
|
取得メソッド |
---|---|
Unsigned8bitInteger | GetValueAsUInt8 |
Unsigned16bitInteger | GetValueAsUInt16 |
Unsigned32bitInteger | GetValueAsUInt32 |
Signed8bitInteger | GetValueAsInt8 |
Signed16bitInteger | GetValueAsInt16 |
Signed32bitInteger | GetValueAsInt32 |
AFormatType
は、上記表示には含まれていません。形式例外が発生します。