cJSON_PrintBuffered function
Render a cJSON entity to text using a buffered strategy. prebuffer is a guess at the final size. guessing well reduces reallocation. fmt=0 gives unformatted, =1 gives formatted
Implementation
@ffi.Native<
ffi.Pointer<ffi.Char> Function(ffi.Pointer<cJSON>, ffi.Int, cJSON_bool)
>()
external ffi.Pointer<ffi.Char> cJSON_PrintBuffered(
ffi.Pointer<cJSON> item,
int prebuffer,
int fmt,
);