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

Method WriteValue

publication/source_code/include/chimp/byte_writer.hpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36 template <class T, uint8_t SIZE>
37 void WriteValue(const T& value) {
38 const uint8_t bytes = (SIZE >> 3) + ((SIZE & 7) != 0);
39 if (!EMPTY) { memcpy((void*)(buffer + index), &value, bytes); }
40 index += bytes;
41 }
42
43 template <class T>
44 void WriteValue(const T& value, const uint8_t& size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected