bio.core.utils.format

This module provides fast formatting functions.

Each function has two overloads:

  • ref char* - in this case, function starts writing at the location, and updates the pointer. No checks are done, it's user's responsibility that this is safe.
  • scope void delegate(const(char)[]) - formatted data is passed to the delegate for further processing.

Members

Functions

write
void write(char* sink, T value)
write
void write(void delegate(const(char)[]) sink, T value)
writeArray
void writeArray(Sink sink, T array, U delimiter)
writeJson
void writeJson(char* sink, T value)
void writeJson(void delegate(const(char)[]) sink, T value)

Supports numbers, strings, and arrays. No dictionary - because D doesn't have a good one.

Templates

isSomeSink
template isSomeSink(T)

Meta