Entry
Metadata and streaming content for the current TAR entry.
The handle remains valid only until its parent Reader
advances or leaves scope. Iterating an entry yields arbitrary-sized
Bin chunks until the content is exhausted.
Example
Fields
device_majorDevice major number, or
nilwhen absent.device_minorDevice minor number, or
nilwhen absent.gidNumeric group ID.
group_nameGroup name, or
nilwhen absent.link_nameLink target as an
fs.unix.Path, ornilwhen absent.modeUnix permission bits.
mtimeModification time as
DateTime.owner_nameOwner name, or
nilwhen absent.pathEntry path as an
fs.unix.Path.sizeDeclared content size in bytes.
typeEntry type as
:FILE:,:DIR:,:HARDLINK:,:SYMLINK:,:FIFO:,:CHAR_DEVICE:,:BLOCK_DEVICE:,:CONTIGUOUS:, or:UNKNOWN:.uidNumeric owner ID.
Methods
(next)()
Yields the next content chunk, ending iteration once the entry is exhausted.
read size -> Bin
Reads up to size bytes from the current content position.
Parameters
| Name | Type | Description |
|---|---|---|
size |
Int |
Maximum bytes to read. |