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

Function hoedown_buffer_grow

libraries/hoedown/src/buffer.c:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void
103hoedown_buffer_grow(hoedown_buffer *buf, size_t neosz)
104{
105 size_t neoasz;
106 assert(buf && buf->unit);
107
108 if (buf->asize >= neosz)
109 return;
110
111 neoasz = buf->asize + buf->unit;
112 while (neoasz < neosz)
113 neoasz += buf->unit;
114
115 buf->data = (uint8_t *) buf->data_realloc(buf->data, neoasz);
116 buf->asize = neoasz;
117}
118
119void
120hoedown_buffer_put(hoedown_buffer *buf, const uint8_t *data, size_t size)

Callers 10

replace_spacingFunction · 0.85
hoedown_document_renderFunction · 0.85
hoedown_buffer_putFunction · 0.85
hoedown_buffer_putcFunction · 0.85
hoedown_buffer_putfFunction · 0.85
hoedown_buffer_setFunction · 0.85
hoedown_buffer_cstrFunction · 0.85
hoedown_buffer_printfFunction · 0.85
hoedown_html_smartypantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected