SdkBufferedSink
A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.
Inheritors
A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.
Inheritors
Properties
Functions
Writes all buffered data to the underlying sink. Like flush, but weaker (ensures data is pushed to the underlying sink but not necessarily all the way down the chain like flush does). Call before this sink goes out of scope to ensure any buffered data eventually gets to its final destination
Writes all buffered data to the underlying sink. Like flush, but weaker (ensures data is pushed to the underlying sink but not necessarily all the way down the chain like flush does). Call before this sink goes out of scope to ensure any buffered data eventually gets to its final destination
Return an output stream that writes to this sink
Write string as UTF-8 encoded bytes to this sink starting at start index up to endExclusive index.
Inherited functions
Returns a new sink that buffers writes to the sink. Writes will be efficiently "batched". Call SdkSink.flush when done to emit all data to the underlying sink.
Pushes all buffered bytes to their final destination and releases resources held by this sink. It is an error to write to a closed sink. This is an idempotent operation.
Pushes all buffered bytes to their final destination and releases resources held by this sink. It is an error to write to a closed sink. This is an idempotent operation.