cJSON
cJSON_malloc()
is only used within cJSON.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
cJSON
cJSON_malloc()
cJSON_malloc() function
Syntax
Show:
Summary
Declaration
Definition
from
cJSON.h:293
void
*
)
cJSON_malloc
(
size_t
size
)
;
Implemented in
cJSON.c:3134
Arguments
Argument
size
Examples
References
from
examples
Code
Location
Referrer
CJSON_PUBLIC
(
void
*
)
cJSON_malloc
(
size_t
size
)
cJSON.c:3134
CJSON_PUBLIC
(
void
*
)
cJSON_malloc
(
size_t
size
)
;
cJSON.h:293
copy
=
(
unsigned
char
*
)
cJSON_malloc
(
length
)
;
cJSON_Utils.c:72
cJSONUtils_strdup()
unsigned
char
*
full_pointer
=
(
unsigned
char
*
)
cJSON_malloc
(
strlen
(
(
char
*
)
target_pointer
)
+
20
+
sizeof
(
"/"
)
)
;
cJSON_Utils.c:224
cJSONUtils_FindPointerFromObjectTo()
unsigned
char
*
full_pointer
=
(
unsigned
char
*
)
cJSON_malloc
(
strlen
(
(
char
*
)
target_pointer
)
+
pointer_encoded_length
(
(
unsigned
char
*
)
current_child
->
string
)
+
2
)
;
cJSON_Utils.c:242
cJSONUtils_FindPointerFromObjectTo()
unsigned
char
*
full_path
=
(
unsigned
char
*
)
cJSON_malloc
(
path_length
+
suffix_length
+
sizeof
(
"/"
)
)
;
cJSON_Utils.c:1120
compose_patch()
unsigned
char
*
new_path
=
(
unsigned
char
*
)
cJSON_malloc
(
strlen
(
(
const
char
*
)
path
)
+
20
+
sizeof
(
"/"
)
)
;
/* Allow space for 64bit int. log10(2^64) = 20 */
cJSON_Utils.c:1175
create_patches()
unsigned
char
*
new_path
=
(
unsigned
char
*
)
cJSON_malloc
(
path_length
+
from_child_name_length
+
sizeof
(
"/"
)
)
;
cJSON_Utils.c:1246
create_patches()
Call Tree
from
examples
cJSON_malloc()
is called by 4 functions and calls 1 function:
cJSONUtils_strdup()
cJSONUtils_FindPointerFromObjectTo()
compose_patch()
create_patches()
All items filtered out
cJSON_malloc()
internal_hooks::allocate
All items filtered out
Data Use
from
examples
cJSON_malloc()
reads 1 variable:
global_hooks
All items filtered out
cJSON_malloc()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out