Home
last modified time | relevance | path

Searched refs:writable_bytes (Results 1 – 4 of 4) sorted by relevance

/external/pigweed/pw_kvs/public/pw_kvs/internal/
Dsectors.h33 size_t writable_bytes() const { in writable_bytes() function
37 void set_writable_bytes(uint16_t writable_bytes) { in set_writable_bytes() argument
38 tail_free_bytes_ = writable_bytes; in set_writable_bytes()
62 if (bytes > writable_bytes()) { in RemoveWritableBytes()
71 return writable_bytes() >= required_space; in HasSpace()
75 return writable_bytes() == sector_size_bytes; in Empty()
81 return sector_size_bytes - valid_bytes_ - writable_bytes(); in RecoverableBytes()
156 sector.writable_bytes(); in NextWritableAddress()
/external/pigweed/pw_kvs/
Dkey_value_store_binary_format_test.cc246 ASSERT_EQ(1024u, stats.writable_bytes); in TEST_F()
284 EXPECT_EQ(0u, stats.writable_bytes); in TEST_F()
303 EXPECT_EQ(0u, stats.writable_bytes); in TEST_F()
323 EXPECT_EQ(2 * 512u, stats.writable_bytes); in TEST_F()
366 EXPECT_EQ(stats.writable_bytes, 512u * 2); in TEST_F()
375 EXPECT_EQ(stats.writable_bytes, 512u * 2 - (32 * kvs_.redundancy())); in TEST_F()
458 ASSERT_EQ(1472u, stats.writable_bytes); in TEST_F()
473 ASSERT_EQ(3 * 512u - 32u, stats.writable_bytes); in TEST_F()
500 EXPECT_EQ(1440u, stats.writable_bytes); in TEST_F()
520 EXPECT_EQ(3 * 512u - 64u, stats.writable_bytes); in TEST_F()
[all …]
Dkey_value_store.cc254 total_corrupt_bytes += sector.writable_bytes(); in InitializeMetadata()
323 stats.writable_bytes += sector.writable_bytes(); in GetStorageStats()
1278 size_t(sd.writable_bytes()), in LogDebugInfo()
1280 sd.writable_bytes() ? "YES" : ""); in LogDebugInfo()
1327 unsigned(sector.writable_bytes())); in LogSectors()
/external/pigweed/pw_kvs/public/pw_kvs/
Dkey_value_store.h312 size_t writable_bytes; member