BlobVfs

A virtual file system of blobs.

Blobs live in a virtual, in-memory system. They are uniquely identified by their URI.

A URI contains a version. This mean that a blob can exist in multiple versions. The original is usually version zero.

Members

Functions

change
bool change(BlobIdentifier id, const(Edit)[] edits)
bool change(BlobEdit be)
bool change(Uri uri, const(Edit)[] edits)

Apply a stream of edits to a blob.

close
bool close(BlobIdentifier id)

Close a blob in the cache if it exists.

exists
bool exists(Uri uri)
get
Blob get(Uri uri)

Get the blob matching the URI either from the VFS or the filesystem.

open
bool open(Blob blob)

Open a blob with the same URI and content as blob if it doesn't already exist.

openFromFile
Blob openFromFile(Uri uri)

Open a blob with the content read from the file system if it doesn't already exist in the VFS.

uris
auto uris()

Meta