class FileInfo
Defined at line 8316 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
Auxiliary data for the file representation of a node.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
void FileInfo ()
void FileInfo (FileInfo && other)
const bool & is_append ()
True if the file is opened in append mode.
In append mode, the seek offset is moved to the end before every
write, the two steps performed in an atomic manner.
Defined at line 8325 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_is_append ()
Defined at line 8329 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool * mutable_is_append ()
True if the file is opened in append mode.
In append mode, the seek offset is moved to the end before every
write, the two steps performed in an atomic manner.
Defined at line 8336 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_is_append ()
Defined at line 8344 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
const ::zx::event & observer ()
An optional event which transmits information about an object's
readability or writability. This event relays information about the
underlying object, not the capability granted to client: this event
may be signalled "readable" on a connection that does not have
the capability to read.
This event will be present if the following conditions are met:
- The `available_operations` on the file connection is not empty.
- The filesystem supports signalling readability/writability events.
The [`FileSignal`] values may be observed on this event.
Defined at line 8364 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_observer ()
Defined at line 8368 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
::zx::event * mutable_observer ()
An optional event which transmits information about an object's
readability or writability. This event relays information about the
underlying object, not the capability granted to client: this event
may be signalled "readable" on a connection that does not have
the capability to read.
This event will be present if the following conditions are met:
- The `available_operations` on the file connection is not empty.
- The filesystem supports signalling readability/writability events.
The [`FileSignal`] values may be observed on this event.
Defined at line 8384 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_observer ()
Defined at line 8392 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_stream ()
Defined at line 8428 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
const ::fuchsia::io::NodeAttributes2 & attributes ()
Requested attributes for the file. This is only populated if requested.
Defined at line 8437 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_attributes ()
Defined at line 8441 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
::fuchsia::io::NodeAttributes2 * mutable_attributes ()
Requested attributes for the file. This is only populated if requested.
Defined at line 8446 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_attributes ()
Defined at line 8454 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
FileInfo & set_is_append (bool _value)
FileInfo & set_observer (::zx::event _value)
FileInfo & set_stream (::zx::stream _value)
FileInfo & set_attributes (::fuchsia::io::NodeAttributes2 _value)
const ::zx::stream & stream ()
An optional stream object, which can be used to read to and write from
the file more quickly than with fidl.
The channel for the file *must* be held open while the stream is in use.
Using a stream object that has outlived the channel it came from may
result in failures or unexpected results.
Defined at line 8406 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_stream ()
Defined at line 8410 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
::zx::stream * mutable_stream ()
An optional stream object, which can be used to read to and write from
the file more quickly than with fidl.
The channel for the file *must* be held open while the stream is in use.
Using a stream object that has outlived the channel it came from may
result in failures or unexpected results.
Defined at line 8420 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void ~FileInfo ()
FileInfo & operator= (FileInfo && other)
::std::unique_ptr<FileInfo> New ()
void Encode (::fidl::Encoder *_encoder,size_t_offset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,FileInfo *_value,size_t_offset)
zx_status_t Clone (FileInfo * _result)