MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / hoedown_buffer_put

Function hoedown_buffer_put

libraries/hoedown/src/buffer.c:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void
120hoedown_buffer_put(hoedown_buffer *buf, const uint8_t *data, size_t size)
121{
122 assert(buf && buf->unit);
123
124 if (buf->size + size > buf->asize)
125 hoedown_buffer_grow(buf, buf->size + size);
126
127 memcpy(buf->data + buf->size, data, size);
128 buf->size += size;
129}
130
131void
132hoedown_buffer_puts(hoedown_buffer *buf, const char *str)

Callers 15

hoedown_autolink__wwwFunction · 0.85
hoedown_autolink__emailFunction · 0.85
hoedown_autolink__urlFunction · 0.85
unscape_textFunction · 0.85
replace_spacingFunction · 0.85
parse_inlineFunction · 0.85
char_entityFunction · 0.85
char_autolink_wwwFunction · 0.85
char_linkFunction · 0.85
parse_blockcodeFunction · 0.85
parse_listitemFunction · 0.85
is_footnoteFunction · 0.85

Calls 1

hoedown_buffer_growFunction · 0.85

Tested by

no test coverage detected