cJSON_PrintBuffered function

  1. @Native<Pointer<Char> Function(Pointer<cJSON>, Int, cJSON_bool)>(ffi.Pointer<cJSON>, ffi.Int, cJSON_bool)>()
Pointer<Char> cJSON_PrintBuffered(
  1. Pointer<cJSON> item,
  2. int prebuffer,
  3. int fmt
)

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,
);