Bundle
A bundle is a string-based dictionary abstract data type (ADT).
A dictionary is an ordered or unordered list of key-value pairs, where keys are used to locate elements in the list. The key is always a string.
The main features of the Bundle API include:
- Creating a bundle using the bundle_create() function.
- Adding content to a bundle using the bundle_add_str(), bundle_add_str_array(), or bundle_add_byte() function.
- Managing the bundle content using the following functions:
- Deleting: bundle_del()
- Retrieving content: bundle_get_str(), bundle_get_str_array(), and bundle_get_byte()
- Retrieving details: bundle_get_type() and bundle_get_count()
- Iterating a bundle using the bundle_foreach() function.
- Encoding and decoding a bundle using the bundle_encode() and bundle_decode() functions.
When no longer needed, release the bundle by calling the bundle_free() function.