27#ifndef MMGR_VERBA_LINEA_H
28#define MMGR_VERBA_LINEA_H
The embedded_types headers every module builds on.
A line written into out, at bytes so far, and handed to flush as it fills.
embed_bool mmgr_line_flush(VerbaLinea *line)
Hands what the line holds to its flush and empties it.
void mmgr_line_hex(VerbaLinea *line, uint64_t value, unsigned int digits_least)
Writes value in lower case base sixteen, padded on the left with zeros to digits_least digits.
embed_bool mmgr_line_ok(const VerbaLinea *line)
Reports whether every write fit.
size_t mmgr_line_put(VerbaLinea *line, const char *text)
Writes a terminated text.
size_t mmgr_line_put_most(VerbaLinea *line, const char *text, size_t most)
Writes a terminated text, at most most bytes of it.
VerbaLinea mmgr_line_over(char *out, size_t capacity)
Makes a line over a buffer, of no capacity where the buffer is NULL.
int(*) VerbaLineaFlush(void *context, const char *bytes, size_t size)
Where a line hands the size bytes at bytes it holds once it is full.
size_t mmgr_line_put_n(VerbaLinea *line, const char *text, size_t length)
Writes length bytes of text.
void mmgr_line_decimal_columns(VerbaLinea *line, uint64_t value, unsigned int columns)
Writes value in base ten, right aligned in columns with spaces before it.
void mmgr_line_put_columns(VerbaLinea *line, const char *text, unsigned int columns)
Writes a terminated text and spaces after it out to columns.
void mmgr_line_decimal(VerbaLinea *line, uint64_t value, unsigned int digits_least)
Writes value in base ten, padded on the left with zeros to digits_least digits.
void mmgr_line_ch(VerbaLinea *line, char character)
Writes one character.
void mmgr_line_decimal_signed(VerbaLinea *line, int64_t value)
Writes a signed value in base ten, a minus sign before a negative one.
size_t mmgr_line_finish(VerbaLinea *line)
Stores the terminator, the one store a line no write has reached still needs.