streams.utils

Collection of utilities for stream components.

Members

Enums

BufferAllocationStrategy
enum BufferAllocationStrategy

A strategy for how to grow a buffer as items are added, used by the AppendableBuffer.

Functions

readHexString
Optional!uint readHexString(const(char[]) chars)

Reads an unsigned integer value from a hex-string.

reverseArray
void reverseArray(T[] array)

Reverses the elements of the given array in-place.

writeHexString
uint writeHexString(uint value, char[] buffer)

Writes a hex string to a buffer for a given value.

Structs

AppendableBuffer
struct AppendableBuffer(T)

A betterC-compatible array buffer that grows as needed to accommodate new elements.

Either
struct Either(A, string NameA, B, string NameB)

A type that contains either an element of A, or an element of B, but not both. You can access the given names directly, so for example:

Optional
struct Optional(T)

A simple nullable type, where a boolean flag indicates whether a value is present.

Meta