class LazyDir

Defined at line 27 of file ../../sdk/lib/vfs/cpp/lazy_dir.h

`LazyDir` is an abstract base class for directories that dynamically update their contents.

Clients should derive from this class and implement GetContents and GetFile for their use case.

The base implementation of this class is thread-safe, but it is up to implementers to ensure

their implementations are thread safe as well.

Due to lifetime restrictions, implementations of `LazyDir` cannot call `Serve()`. However, the

`LazyDir` node can be added as a child entry of a `vfs::PseudoDir` which will ensure the lifetime

requirements.

Public Methods

void LazyDir ()

Defined at line 29 of file ../../sdk/lib/vfs/cpp/lazy_dir.h

Protected Methods

void GetContents (std::vector<LazyEntry> * out_vector)

Returns the contents of the directory as an output vector.

zx_status_t GetFile (Node ** out_node, uint64_t id, std::string name)

Returns a pointer to an entry during lookup. The ID for the entry matching `name`, as returned

by `GetContents()`, is passed as `id` in to assist locating the file.

uint64_t GetStartingId ()

IDs returned by `GetContents()` should be greater than or equal to this value.

Defined at line 52 of file ../../sdk/lib/vfs/cpp/lazy_dir.h

Records