MCPcopy Create free account
hub / github.com/cwida/ALP / Store

Method Store

publication/source_code/include/chimp/chimp.hpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 static constexpr uint8_t TRAILING_ZERO_THRESHOLD = SignificantBits<CHIMP_TYPE>::size + INDEX_BITS_SIZE;
67
68 static void Store(CHIMP_TYPE in, State& state) {
69 if (state.first) {
70 WriteFirst(in, state);
71 } else {
72 CompressValue(in, state);
73 }
74 }
75
76 //! Write the content of the bit buffer to the stream
77 static void Flush(State& state) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected