class FileInfo

Defined at line 7951 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 7960 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

bool has_is_append ()

Defined at line 7964 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 7971 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

void clear_is_append ()

Defined at line 7979 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 7999 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

bool has_observer ()

Defined at line 8003 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 8019 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

void clear_observer ()

Defined at line 8027 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

bool has_stream ()

Defined at line 8045 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 8055 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

void clear_stream ()

Defined at line 8063 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 8072 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

bool has_attributes ()

Defined at line 8076 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 8081 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/hlcpp/fuchsia/io/cpp/fidl.h

void clear_attributes ()

Defined at line 8089 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 8041 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)