Searched refs:bytes_until_next_allocation (Results 1 – 3 of 3) sorted by relevance
/external/libtextclassifier/native/utils/base/ |
D | arena_leakage_unittest.cc | 25 EXPECT_EQ(arena.bytes_until_next_allocation(), 32); in TEST() 28 EXPECT_EQ(arena.bytes_until_next_allocation(), 22); in TEST() 35 EXPECT_EQ(arena.bytes_until_next_allocation(), 0); in TEST() 39 EXPECT_EQ(arena.bytes_until_next_allocation(), 0); in TEST()
|
D | arena_test.cc | 165 int alignment = blksize - a->bytes_until_next_allocation(); in TestArena() 168 s = a->bytes_until_next_allocation() - 1; in TestArena() 170 TC3_CHECK_EQ(a->bytes_until_next_allocation(), 1); in TestArena() 172 TC3_CHECK_EQ(a->bytes_until_next_allocation(), 0); in TestArena() 175 TC3_CHECK_EQ(a->bytes_until_next_allocation(), 0); in TestArena() 178 TC3_CHECK_EQ(a->bytes_until_next_allocation(), blksize - 1); in TestArena() 183 TC3_CHECK_EQ(a->bytes_until_next_allocation(), blksize - s - 1); in TestArena() 186 TC3_CHECK_EQ(a->bytes_until_next_allocation(), blksize - 2); in TestArena() 190 TC3_CHECK_EQ(a->bytes_until_next_allocation(), blksize - alignment); in TestArena()
|
D | arena.h | 276 size_t bytes_until_next_allocation() const { return remaining_; } in bytes_until_next_allocation() function
|