class WriteOptions

Defined at line 4388 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

Represents the supported options to write a characteristic/descriptor value

to a server.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const ::fuchsia::bluetooth::gatt2::WriteMode & write_mode ()

The mode of the write operation. For descriptors, only

[`WriteMode.DEFAULT`] is supported

Optional.

Default: [`WriteMode.DEFAULT`]

Defined at line 4398 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

bool has_write_mode ()

Defined at line 4402 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

::fuchsia::bluetooth::gatt2::WriteMode * mutable_write_mode ()

The mode of the write operation. For descriptors, only

[`WriteMode.DEFAULT`] is supported

Optional.

Default: [`WriteMode.DEFAULT`]

Defined at line 4410 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

void clear_write_mode ()

Defined at line 4418 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

const uint16_t & offset ()

Request a write starting at the byte indicated.

Must be missing or 0 if `write_mode` is [`WriteMode.WITHOUT_RESPONSE`].

Optional.

Default: 0

Defined at line 4430 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

bool has_offset ()

Defined at line 4434 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

uint16_t * mutable_offset ()

Request a write starting at the byte indicated.

Must be missing or 0 if `write_mode` is [`WriteMode.WITHOUT_RESPONSE`].

Optional.

Default: 0

Defined at line 4442 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

void clear_offset ()

Defined at line 4450 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h

WriteOptions & set_write_mode (::fuchsia::bluetooth::gatt2::WriteMode _value)
WriteOptions & set_offset (uint16_t _value)
void WriteOptions ()
void WriteOptions (WriteOptions && other)
void ~WriteOptions ()
WriteOptions & operator= (WriteOptions && other)
::std::unique_ptr<WriteOptions> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, WriteOptions * _value, size_t _offset)
zx_status_t Clone (WriteOptions * _result)