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

Function hoedown_buffer_set

libraries/hoedown/src/buffer.c:162–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void
163hoedown_buffer_set(hoedown_buffer *buf, const uint8_t *data, size_t size)
164{
165 assert(buf && buf->unit);
166
167 if (size > buf->asize)
168 hoedown_buffer_grow(buf, size);
169
170 memcpy(buf->data, data, size);
171 buf->size = size;
172}
173
174void
175hoedown_buffer_sets(hoedown_buffer *buf, const char *str)

Callers 1

hoedown_buffer_setsFunction · 0.85

Calls 1

hoedown_buffer_growFunction · 0.85

Tested by

no test coverage detected