iopipe.buffer

Buffer handling for iopipe.

Members

Static variables

PAGESIZE
size_t PAGESIZE;
Undocumented in source.

Structs

AllocatedBuffer
struct AllocatedBuffer(T, Allocator = GCNoPointerAllocator, size_t floorSize = 8192)

Array based buffer manager. Uses custom allocator to get the data. Limits growth to doubling.

GCNoPointerAllocator
struct GCNoPointerAllocator

GC allocator that creates blocks of non-pointer data (unscanned). This also does not support freeing data, relying on the GC to do so.

RingBuffer
struct RingBuffer(T, size_t floorSize = 8192)

A RingBuffer uses the underlying memory management system to avoid any copying of data (unless expanding).

Meta

License

Boost License 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Authors

Steven Schveighoffer, Dmitry Olshansky