class ReadOptions
Defined at line 4223 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
Represents the supported options to read a characteristic or descriptor
value from a server.
Public Members
static const fidl_type_t * FidlType
Public Methods
void ReadOptions ()
void ~ReadOptions ()
void ReadOptions (ReadOptions && )
ReadOptions & operator= (ReadOptions && )
ReadOptions WithShortRead (::fuchsia::bluetooth::gatt2::ShortReadOptions && )
ReadOptions WithLongRead (::fuchsia::bluetooth::gatt2::LongReadOptions && )
::std::unique_ptr<ReadOptions> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ReadOptions * value, size_t offset)
zx_status_t Clone (ReadOptions * result)
bool has_invalid_tag ()
Defined at line 4251 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool is_short_read ()
Defined at line 4255 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
ReadOptions & set_short_read (::fuchsia::bluetooth::gatt2::ShortReadOptions value)
::fuchsia::bluetooth::gatt2::ShortReadOptions & short_read ()
Perform a short read, which may be truncated (as indicated by the
maybe_truncated in the result)
Most reads in GATT services are short reads (
<
= 22 bytes).
Defined at line 4260 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const ::fuchsia::bluetooth::gatt2::ShortReadOptions & short_read ()
Perform a short read, which may be truncated (as indicated by the
maybe_truncated in the result)
Most reads in GATT services are short reads (
<
= 22 bytes).
Defined at line 4268 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool is_long_read ()
Defined at line 4274 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
::fuchsia::bluetooth::gatt2::LongReadOptions & long_read ()
If present, perform a long read using the indicated options.
Optional.
Default: A short read will be performed.
Defined at line 4279 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const ::fuchsia::bluetooth::gatt2::LongReadOptions & long_read ()
If present, perform a long read using the indicated options.
Optional.
Default: A short read will be performed.
Defined at line 4287 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
ReadOptions & set_long_read (::fuchsia::bluetooth::gatt2::LongReadOptions value)
ReadOptions & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes)
::fuchsia::bluetooth::gatt2::ReadOptions::Tag Which ()
Defined at line 4294 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
fidl_xunion_tag_t Ordinal ()
You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need
access to the raw integral ordinal value.
Defined at line 4309 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const std::vector<uint8_t> * UnknownBytes ()
Defined at line 4312 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
Enumerations
enum Tag
| Name | Value |
|---|---|
| kUnknown | 0 |
| kShortRead | 1 |
| kLongRead | 2 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 4236 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
Friends
class Equality