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

Function CIntFromRScalarImpl

r/src/r_to_arrow.cpp:319–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318template <typename T>
319Result<T> CIntFromRScalarImpl(int64_t value) {
320 if (value < std::numeric_limits<T>::min() || value > std::numeric_limits<T>::max()) {
321 return Status::Invalid("value outside of range");
322 }
323 return static_cast<T>(value);
324}
325
326template <>
327Result<uint64_t> CIntFromRScalarImpl<uint64_t>(int64_t value) {

Callers

nothing calls this directly

Calls 1

InvalidClass · 0.50

Tested by

no test coverage detected