class FileInfo
Defined at line 6942 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/natural_types.h
Auxiliary data for the file representation of a node.
Public Methods
void FileInfo (Storage_ storage)
void FileInfo ()
Defined at line 6947 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/natural_types.h
void FileInfo (FileInfo && )
Defined at line 6948 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/natural_types.h
bool IsEmpty ()
const std::optional<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.
::std::optional<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.
FileInfo & is_append (std::optional<bool> value)
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.
const std::optional< ::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.
::std::optional< ::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.
FileInfo & observer (std::optional< ::zx::event> value)
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.
FileInfo & operator= (FileInfo && )
Defined at line 6949 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/natural_types.h
const std::optional< ::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.
::std::optional< ::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.
FileInfo & stream (std::optional< ::zx::stream> value)
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.
const std::optional< ::fuchsia_io::NodeAttributes2> & attributes ()
Requested attributes for the file. This is only populated if requested.
::std::optional< ::fuchsia_io::NodeAttributes2> & attributes ()
Requested attributes for the file. This is only populated if requested.
FileInfo & attributes (std::optional< ::fuchsia_io::NodeAttributes2> value)
Requested attributes for the file. This is only populated if requested.
void FileInfo (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits