MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / Encode

Function Encode

src/codec/row_codec.h:415–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415static inline void Encode(uint64_t time, const char* data, const size_t size,
416 char* buffer, uint32_t offset) {
417 buffer += offset;
418 uint32_t total_size = 8 + size;
419 memcpy(buffer, static_cast<const void*>(&total_size), 4);
420 memrev32ifbe(buffer);
421 buffer += 4;
422 memcpy(buffer, static_cast<const void*>(&time), 8);
423 memrev64ifbe(buffer);
424 buffer += 8;
425 memcpy(buffer, static_cast<const void*>(data), size);
426}
427
428static inline void Encode(uint64_t time, const DataBlock* data, char* buffer,
429 uint32_t offset) {

Callers 7

TEST_FFunction · 0.85
AppendMethod · 0.85
AppendTimestampMethod · 0.85
AppendDateMethod · 0.85
AppendNullMethod · 0.85
EncodeRowsFunction · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68