class FileInfo

Defined at line 6946 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 6951 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/natural_types.h

void FileInfo (FileInfo && )

Defined at line 6952 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 6953 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.

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.

::std::optional< ::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.

FileInfo & stream (std::optional< ::zx::stream> value)

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.

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