The file content for this entry. This may be null for entries loaded asynchronously, or for non-file entries like directories.
The context (if any) from which this entry was parsed. The context will include global data about things such as the origin of the archive and global pax headers.
The size in bytes of the header in the source buffer that this entry was parsed from. Returns zero by default if this was not parsed by a source buffer.
The starting absolute index (inclusive) in the source buffer that this entry was parsed from. Returns zero by default if this was not parsed by a source buffer.
Only necessary if this entry was extracted from an async buffer, since the entry does not hold the content of async buffers by default.
If the entry was extracted synchronously, its content will be available via the "content" property.
Do not use this on entries that have not been parsed from a source buffer, otherwise it will very likely return garbage data.
the source to read content from
the relative offset of the content to read; setting this to 42 will start reading at the 42nd byte index within the content block
the number of bytes to read after the offset
Convenience for decoding the current content buffer as a string. Note that if the content was not loaded for whatever reason, this will return an empty string.
The decoded string data from the currently assigned content, or an empty string if there is no content assigned.
Static
isGenerated using TypeDoc
Container for metadata and content of a tarball entry.
Here, we consider an "entry" to be a tuple of: