MCPcopy Create free account
hub / github.com/apache/thrift / gen_uniform_buffer

Function gen_uniform_buffer

lib/cpp/test/ZlibTest.cpp:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91};
92
93boost::shared_array<uint8_t> gen_uniform_buffer(uint32_t buf_len, uint8_t c) {
94 auto* buf = new uint8_t[buf_len];
95 memset(buf, c, buf_len);
96 return boost::shared_array<uint8_t>(buf);
97}
98
99boost::shared_array<uint8_t> gen_compressible_buffer(uint32_t buf_len) {
100 auto* buf = new uint8_t[buf_len];

Callers 1

init_unit_test_suiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected