ReadonlysizeTotal size in bytes.
ReadonlynameShown in error messages about this source, e.g. a file path.
Staticopenlength bytes from offset, fewer only where the source ends. The
returned bytes may be a view of the source's own memory, so a caller
must not modify them.
Releases whatever the source holds open, if anything.
A file on disk as a
ByteSource: each read reads just that range, on libuv's thread pool.Holds a plain file descriptor rather than a
fs.promisesFileHandle: Node.js treats aFileHandlethat is garbage collected without being closed as an uncaught error, which would take a whole server down over a forgottenclose(). A forgottenFileSourceis closed when it's collected instead.