Module: IO::Stream

Defined in:
lib/io/stream/version.rb,
lib/io/stream.rb,
lib/io/stream/generic.rb,
lib/io/stream/buffered.rb,
lib/io/stream/string_buffer.rb

Overview

Released under the MIT License. Copyright, 2023-2024, by Samuel Williams.

Defined Under Namespace

Classes: Buffered, Generic, StringBuffer

Constant Summary collapse

BLOCK_SIZE =

The default block size for IO buffers. Defaults to 64KB (typical pipe buffer size).

ENV.fetch("IO_STREAM_BLOCK_SIZE", 1024*64).to_i
MAXIMUM_READ_SIZE =

The maximum read size when appending to IO buffers. Defaults to 8MB.

ENV.fetch("IO_STREAM_MAXIMUM_READ_SIZE", BLOCK_SIZE * 128).to_i
VERSION =
"0.5.0"