| 703 | } |
| 704 | |
| 705 | static 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 | |
| 714 | static void CheckPageOrdinal(int32_t page_ordinal) { |
| 715 | if (ARROW_PREDICT_FALSE(page_ordinal > std::numeric_limits<int16_t>::max())) { |
no outgoing calls
no test coverage detected