af4e408555
buflib_allocatable() is what buflib_available() was before (it was in fact simply renamed). It returns the largest contiguous block of memory. This can be allocated and will definitely succeed, although larger allocations may also succeed if the buffer can be compacted and shrinked. buflib_available() now counts all free bytes, contiguous or not. This better matches the description and how the caller use it. Change-Id: I511e4eb5f4cf1821d957b3f4ef8a685ce40fe289 Reviewed-on: http://gerrit.rockbox.org/481 Reviewed-by: Thomas Martitz <kugel@rockbox.org> Tested-by: Thomas Martitz <kugel@rockbox.org> |
||
---|---|---|
.. | ||
_ansi.h | ||
assert.h | ||
buflib.h | ||
core_alloc.h | ||
crc32-mi4.h | ||
crc32-rkw.h | ||
crc32.h | ||
dbgcheck.h | ||
diacritic.h | ||
dir.h | ||
dir_uncached.h | ||
dircache.h | ||
file.h | ||
font_cache.h | ||
format.h | ||
gcc_extensions.h | ||
loader_strerror.h | ||
lru.h | ||
memset16.h | ||
rb-loader.h | ||
rbunicode.h | ||
strcasecmp.h | ||
strcasestr.h | ||
string-extra.h | ||
strlcat.h | ||
strlcpy.h | ||
strnatcmp.h | ||
strtok_r.h | ||
timefuncs.h |