class FileInfo

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

bool has_is_append ()

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

void clear_is_append ()

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

bool has_observer ()

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

void clear_observer ()

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

void clear_stream ()

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

bool has_attributes ()

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

void clear_attributes ()

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

bool has_stream ()

Defined at line 8106 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 8116 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)