MCPcopy Create free account
hub / github.com/apache/fory / hex

Method hex

cpp/fory/util/buffer.cc:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143std::string Buffer::hex() const {
144 return util::hex(data(), static_cast<int32_t>(size_));
145}
146
147bool allocate_buffer(uint32_t size, std::shared_ptr<Buffer> *out) {
148 auto *data = static_cast<uint8_t *>(malloc(static_cast<size_t>(size)));

Callers 4

test_bufferFunction · 0.95
struct_round_backFunction · 0.80
test_simple_structFunction · 0.80
test_empty_bufferFunction · 0.80

Calls 1

hexFunction · 0.85

Tested by 4

test_bufferFunction · 0.76
struct_round_backFunction · 0.64
test_simple_structFunction · 0.64
test_empty_bufferFunction · 0.64