Utility functions for managing an application's memory.
Calculates the number of bytes of heap memory not currently being used by the application.
The number of bytes on the heap not currently being used.
Calculates the number of bytes of heap memory currently being used by the application.
The number of bytes on the heap currently being used.
Flushes the data cache and invalidates the instruction cache for the given region of memory, if necessary. This is only required when your app is loading or modifying code in memory and intends to execute it. On some platforms, code executed may be cached internally to improve performance. After writing to memory, but before executing, this function must be called in order to avoid undefined behavior. On platforms without caching, this performs no operation.
The beginning of the buffer to flush
How many bytes to flush
Flushes the data cache and invalidates the instruction cache for the given region of memory, if necessary. This is only required when your app is loading or modifying code in memory and intends to execute it. On some platforms, code executed may be cached internally to improve performance. After writing to memory, but before executing, this function must be called in order to avoid undefined behavior. On platforms without caching, this performs no operation.
The beginning of the buffer to flush
How many bytes to flush
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can send us a message through the website!