Utility functions
Utility functions for releasing data.
Summary
Functions
|
ArByteArray_release(uint8_t *byte_array)
|
void
Releases a byte array created using an ARCore API function.
|
ArString_release(char *str)
|
void
Releases a string acquired using an ARCore API function.
|
Functions
ArByteArray_release
void ArByteArray_release(
uint8_t *byte_array
)
Releases a byte array created using an ARCore API function.
ArString_release
void ArString_release(
char *str
)
Releases a string acquired using an ARCore API function.
Details |
Parameters |
str
|
The string to be released.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["ARCore utility functions help manage memory by providing ways to release data."],["`ArByteArray_release` function is used to release a byte array previously created by an ARCore API function."],["`ArString_release` function is used to release a string previously acquired by an ARCore API function."]]],["The content outlines utility functions for releasing data within the ARCore API. `ArByteArray_release` frees memory allocated to a byte array, while `ArString_release` deallocates memory held by a string. Both functions, when called, are used to release resources acquired through the ARCore API, ensuring proper memory management. The parameter for the `ArString_release` function takes a pointer to a character (`char *str`) to be released.\n"]]