class FileInfo

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

bool has_is_append ()

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

void clear_is_append ()

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

bool has_observer ()

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

void clear_observer ()

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

void clear_stream ()

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

bool has_attributes ()

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

void clear_attributes ()

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

bool has_stream ()

Defined at line 8242 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 8252 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)