Interface information receieved for the current section, in order of reception.
ReadonlylockedThe locked read-only property of the WritableStream interface returns a boolean indicating whether the WritableStream is locked to a writer.
Endianness of the current section. Little-endian => LE. Big-endian => BE.
Is this file in the pcap-ng format?
The abort() method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
Optionalreason: anyThe addEventListener() method of the EventTarget interface sets up
a function that will be called whenever the specified event is delivered
to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe close() method of the WritableStream interface closes the associated stream.
The dispatchEvent() method of the EventTarget sends an Event to the
object, (synchronously) invoking the affected event listeners in the
appropriate order.
The getWriter() method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
Stop listening for the given event.
Event name.
Handler to remove.
This, for chaining.
Listen for an event, unwrapping the detailor error in the event so that it is easier to process.
Event name.
Handler.
This, for chaining.
Listen for the first occurence of a given event. Does the same
unwrapping as on.
Event name.
Handler.
This, for chaining.
The removeEventListener() method of the EventTarget interface
removes an event listener previously registered with
EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
Parse a PCAPng or old-style PCAP file from a stream.
Example