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

Function create_bufferptr

src/test/erasure-code/TestErasureCodePluginJerasure.cc:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bufferptr create_bufferptr(uint32_t value) {
68 bufferlist bl;
69 bl.append_zero(4096);
70 memcpy(bl.c_str(), &value, sizeof(value));
71 return bl.begin().get_current_ptr();
72}
73
74TEST(ErasureCodePlugin, parity_delta_write) {
75 ErasureCodePluginRegistry &instance = ErasureCodePluginRegistry::instance();

Callers 1

TESTFunction · 0.85

Calls 4

get_current_ptrMethod · 0.80
append_zeroMethod · 0.45
c_strMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected