class AdvisoryLockRequest
Defined at line 4395 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
void AdvisoryLockRequest ()
void AdvisoryLockRequest (AdvisoryLockRequest && other)
const ::fuchsia::io::AdvisoryLockType & type ()
The type of lock to be acquired.
If this field is absent, the [`AdvisoryLock`] method will fail
with ZX_ERR_INVALID_ARGS.
Defined at line 4405 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_type ()
Defined at line 4409 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
::fuchsia::io::AdvisoryLockType * mutable_type ()
The type of lock to be acquired.
If this field is absent, the [`AdvisoryLock`] method will fail
with ZX_ERR_INVALID_ARGS.
Defined at line 4417 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_type ()
Defined at line 4425 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
const ::fuchsia::io::AdvisoryLockRange & range ()
The byte range within the file to be locked.
The range can extend beyond the end of the file but cannot extend beyond
the beginning of the file.
If this field is absent, the range defaults to the entire file.
Defined at line 4439 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_range ()
Defined at line 4443 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
::fuchsia::io::AdvisoryLockRange * mutable_range ()
The byte range within the file to be locked.
The range can extend beyond the end of the file but cannot extend beyond
the beginning of the file.
If this field is absent, the range defaults to the entire file.
Defined at line 4453 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_range ()
Defined at line 4461 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_wait ()
Defined at line 4477 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool * mutable_wait ()
Whether the file should wait reply to the [`AdvisoryLock`]
method until the requested lock can be acquired.
If this field is absent, the file will not wait.
Defined at line 4485 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_wait ()
Defined at line 4493 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
AdvisoryLockRequest & set_type (::fuchsia::io::AdvisoryLockType _value)
AdvisoryLockRequest & set_range (::fuchsia::io::AdvisoryLockRange _value)
AdvisoryLockRequest & set_wait (bool _value)
const bool & wait ()
Whether the file should wait reply to the [`AdvisoryLock`]
method until the requested lock can be acquired.
If this field is absent, the file will not wait.
Defined at line 4473 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void ~AdvisoryLockRequest ()
AdvisoryLockRequest & operator= (AdvisoryLockRequest && other)
::std::unique_ptr<AdvisoryLockRequest> New ()
void Encode (::fidl::Encoder *_encoder,size_t_offset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,AdvisoryLockRequest *_value,size_t_offset)
zx_status_t Clone (AdvisoryLockRequest * _result)