MCPcopy Create free account
hub / github.com/ceph/ceph / clear

Function clear

src/include/buffer.h:1045–1050  ·  view source on GitHub ↗

modifiers

Source from the content-addressed store, hash-verified

1043
1044 // modifiers
1045 void clear() noexcept {
1046 _carriage = &always_empty_bptr;
1047 _buffers.clear_and_dispose();
1048 _len = 0;
1049 _num = 0;
1050 }
1051 void push_back(const ptr& bp) {
1052 if (bp.length() == 0)
1053 return;

Callers 15

shareFunction · 0.70
intersection_ofMethod · 0.70
union_ofMethod · 0.70
span_ofMethod · 0.70
chunk_refs_tMethod · 0.50
putMethod · 0.50
bluestore_types.ccFile · 0.50
initMethod · 0.50
splitMethod · 0.50
matrix_2dMethod · 0.50
prune_tailMethod · 0.50

Calls 1

clear_and_disposeMethod · 0.45

Tested by 15

SetUpMethod · 0.40
RmKeysByPrefixMethod · 0.40
SetUpMethod · 0.40
SetUpMethod · 0.40
SetUpMethod · 0.40
SetUpMethod · 0.40
SetUpMethod · 0.40
TearDownMethod · 0.40
test_merge_logMethod · 0.40
test_proc_replica_logMethod · 0.40
TEST_FFunction · 0.40
TearDownMethod · 0.40