streams.types.array

A collection of array-backed streams for in-memory reading and writing.

Members

Functions

arrayInputStreamFor
ArrayInputStream!E arrayInputStreamFor(E[] array)

Creates and returns an array input stream wrapped around the given array of elements.

arrayOutputStreamFor
ArrayOutputStream!E arrayOutputStreamFor()

Creates and returns an array output stream for elements of the given type, using a default initial capacity of ArrayOutputStream.DEFAULT_INITIAL_CAPACITY and default allocation strategy of AllocationStrategy.Doubling.

byteArrayOutputStream
ArrayOutputStream!ubyte byteArrayOutputStream()

Creates and returns a byte array output stream.

Structs

ArrayInputStream
struct ArrayInputStream(E)

An input stream that reads from an array of items.

ArrayOutputStream
struct ArrayOutputStream(E)

An output stream that writes to an internal array. The resulting array can be obtained with toArray(). It is BetterC compatible, using manual memory management.

Variables

DEFAULT_INITIAL_CAPACITY
uint DEFAULT_INITIAL_CAPACITY;
Undocumented in source.

Meta