MCPcopy Create free account
hub / github.com/apache/arrow / ShortToBytesLe

Function ShortToBytesLe

cpp/src/parquet/encryption/encryption_internal.cc:705–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705static std::string ShortToBytesLe(int16_t input) {
706 int8_t output[2];
707 memset(output, 0, 2);
708 output[1] = static_cast<int8_t>(0xff & (input >> 8));
709 output[0] = static_cast<int8_t>(0xff & (input));
710
711 return std::string(reinterpret_cast<const char*>(output), 2);
712}
713
714static void CheckPageOrdinal(int32_t page_ordinal) {
715 if (ARROW_PREDICT_FALSE(page_ordinal > std::numeric_limits<int16_t>::max())) {

Callers 2

CreateModuleAadFunction · 0.85
QuickUpdatePageAadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected