cJSON_CreateObjectReference function

  1. @Native<Pointer<cJSON> Function(Pointer<cJSON> child)>(ffi.Pointer<cJSON>)>()
Pointer<cJSON> cJSON_CreateObjectReference(
  1. Pointer<cJSON> child
)

Create an object/array that only references it's elements so they will not be freed by cJSON_Delete

Implementation

@ffi.Native<ffi.Pointer<cJSON> Function(ffi.Pointer<cJSON>)>()
external ffi.Pointer<cJSON> cJSON_CreateObjectReference(
  ffi.Pointer<cJSON> child,
);