class FileInfo
Defined at line 7983 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.
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 7992 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_is_append ()
Defined at line 7996 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 8003 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_is_append ()
Defined at line 8011 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 8031 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_observer ()
Defined at line 8035 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 8051 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_observer ()
Defined at line 8059 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_stream ()
Defined at line 8077 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.
Reading and writing the file using the stream object can be up to 20x
faster than reading and writing the file using the Read and Write
operations in the [`File`] protocol.
Defined at line 8087 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_stream ()
Defined at line 8095 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 8104 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
bool has_attributes ()
Defined at line 8108 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 8113 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h
void clear_attributes ()
Defined at line 8121 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)
void FileInfo ()
void FileInfo (FileInfo && other)
const ::zx::stream & stream ()
An optional stream object, which can be used to read to and write from
the file.
Reading and writing the file using the stream object can be up to 20x
faster than reading and writing the file using the Read and Write
operations in the [`File`] protocol.
Defined at line 8073 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)