OptionalcreateEntry: CreateEntry<E>makes the object for each entry event. It is
required if E is not EntryData.
The number of input bytes that are parsed: the header blocks and
the body blocks. At an entry event, it is the place of the body
of the entry in the input.
The number of input bytes up to the end of the last complete entry that is not a meta entry.
The number of bytes of the body of the current entry, with its
padding, that are after the input given so far. The caller can
skip them in its input, and call skipBody(). It is 0 if the
parser has input that it did not parse, and in a PAX or GNU
header, because the parser reads that body.
Tell the parser that the input is complete.
The next event. undefined means that the parser needs more
input, or after the end event, that it is done.
Add input. The parser keeps the chunk until next() returns
undefined, and each body event is a view into it. Input after
end(), or after the end of the archive, is dropped.
Count the bodyRemain bytes as parsed. The next input is the
header after the body.
Report a problem to onwarn. Throws if strict is set, or if
data.recoverable is false.
Optionaldata: WarnData
A tar parser that the caller pulls. Give it input with
push(), and callnext()for each event until it returnsundefined. Then give it more input, or callend()and callnext()again.It does not decompress. It calls no code of the caller but
filter,onwarn, and the function that makes the entry objects.With
strict,next()throws at each problem. The parser stays usable: the next call continues after the block with the problem.