Expand description

MappedVFileBuilder is a file system developement helper, you can use it to create a generator of Reader. You don’t need to implement Read or Seek method but just to add different pointer (offset and size) to chunk of data from an existing Reader to the container.

Structs

FileOffset contain a builder, the offset from where we start reading the data of the builder, and a unique id.

FileRanges contain a Vec<(Range, FileOffset)>. Each range is slice a of data representating a new futur generated file the generated file will be composed of all those slice concatenated in the order where the range was pushed. Each corresponding FileOffset contain a Builder which is the parent file from which the data is read and an offset from where to read the data in that parent file.

This is an implementation of the trait VFileBuilder that help to easily write filesystem plugin by creating a file builder that accept a FileRanges that help building the different chunk of data of the generated file.