EntryWriter
Content stream for one scoped TAR entry.
The writer is valid until the entry's scope ends. A function that accepts an
Io, such as compress.compress, can write
the content during the scope.
Errors
| Exception | Condition |
|---|---|
StateError |
The entry's scope has ended |
ValueError |
A write would exceed the declared size; nothing of it is written |
Example
Inherits from: io.Io
Fields
writable @ Bool[get]Whether the writer is still valid.
Methods
write *data -> Int
Writes raw string or binary bytes, given in pieces.
Parameters
| Name | Type | Description |
|---|---|---|
*data |
(Str | Bin) |
Bytes to write. |
Returns
The number of bytes written, which is all of them.