SliceBuilder

Used to build slices of already read data in Reader buffer, avoiding allocations.

Usually these slices point to unchanged Reader data, but sometimes the data is changed due to how YAML interprets certain characters/strings.

See begin() documentation.

package
struct SliceBuilder {
auto result;
char[4] encodeBuf;
const
auto bytes;
const
auto point;
const
auto movedLength;
char[4] encodeBuf;
const
size_t bytes;
}

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

length
size_t length()

Get the current length of the slice.

write
void write(scope char[] str)

Write a string to the slice being built.

Structs

Transaction
struct Transaction

A slice building transaction.

Meta