Sink
A buffered output sink.
Usage
Sink()Parameters
dest: str-
Destination file path or file-like object.
buffer_size: int = 4096-
Write buffer size in bytes.
Methods
| Name | Description |
|---|---|
| flush() | Flush the write buffer. |
| write() | Write data to the sink. |
flush()
Flush the write buffer.
Usage
flush()write()
Write data to the sink.
Usage
write(data)Parameters
data: bytes-
Bytes to write.
Returns
int-
Number of bytes written.