class AdvisoryLockRequest
Defined at line 4249 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.
AdvisoryLockRequest & set_type (::fuchsia::io::AdvisoryLockType _value)
AdvisoryLockRequest & set_range (::fuchsia::io::AdvisoryLockRange _value)
AdvisoryLockRequest & set_wait (bool _value)
void AdvisoryLockRequest ()
void AdvisoryLockRequest (AdvisoryLockRequest && other)
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)
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 4259 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_type ()
Defined at line 4263 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 4271 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_type ()
Defined at line 4279 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 4293 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_range ()
Defined at line 4297 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 4307 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_range ()
Defined at line 4315 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
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 4327 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_wait ()
Defined at line 4331 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 4339 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_wait ()
Defined at line 4347 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h