MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / byteSpan

Function byteSpan

test/storage/compress_chunk_test.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template<typename T>
48std::span<const uint8_t> byteSpan(const std::vector<T>& buffer) {
49 auto bufferSpan = std::span(buffer);
50 return std::span<const uint8_t>(reinterpret_cast<const uint8_t*>(bufferSpan.data()),
51 bufferSpan.size_bytes());
52}
53
54template<std::floating_point T>
55std::unique_ptr<CompressionMetadata> getFloatMetadata(const std::vector<T>& bufferToCompress,

Callers 1

compressBufferFunction · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected