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

Method encodeData

src/processor/operator/order_by/order_by_key_encoder.cpp:274–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272
273template<>
274void OrderByKeyEncoder::encodeData(int8_t data, uint8_t* resultPtr, bool /*swapBytes*/) {
275 memcpy(resultPtr, (void*)&data, sizeof(data));
276 resultPtr[0] = flipSign(resultPtr[0]);
277}
278
279template<>
280void OrderByKeyEncoder::encodeData(int16_t data, uint8_t* resultPtr, bool swapBytes) {

Callers

nothing calls this directly

Calls 2

isShortStringFunction · 0.85
getAsStringMethod · 0.80

Tested by

no test coverage detected