cJSON_AddItemReferenceToArray function

  1. @Native<cJSON_bool Function(Pointer<cJSON>, Pointer<cJSON>)>(ffi.Pointer<cJSON>, ffi.Pointer<cJSON>)>()
int cJSON_AddItemReferenceToArray(
  1. Pointer<cJSON> array,
  2. Pointer<cJSON> item
)

Append reference to item to the specified array/object. Use this when you want to add an existing cJSON to a new cJSON, but don't want to corrupt your existing cJSON.

Implementation

@ffi.Native<cJSON_bool Function(ffi.Pointer<cJSON>, ffi.Pointer<cJSON>)>()
external int cJSON_AddItemReferenceToArray(
  ffi.Pointer<cJSON> array,
  ffi.Pointer<cJSON> item,
);