class ReadDirents

Defined at line 1237 of file fidling/gen/sdk/fidl/fuchsia.io/fuchsia.io/cpp/fidl/fuchsia.io/cpp/markers.h

Reads a collection of variably sized dirents into a buffer.

The number of dirents in a directory may be very large: akin to

calling read multiple times on a file, directories have a seek

offset which is updated on subsequent calls to ReadDirents.

Each call to ReadDirents will only return whole dirent structures,

they will not get split across ReadDirent calls. When the seek

offset reaches the end, `dirents` will be empty.

These dirents are of the form:

```

struct dirent {

// Describes the inode of the entry.

uint64 ino;

// Describes the length of the dirent name in bytes.

uint8 size;

// Describes the type of the entry. Aligned with the

// POSIX d_type values. Use `DirentType` constants.

uint8 type;

// Unterminated name of entry.

char name[0];

}

```

This method does not require any rights, since one could always probe for

directory contents by triggering name conflicts during file creation.

Public Members

static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal