MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isLong

Method isLong

valdi_core/src/valdi_core/cpp/Utils/Value.cpp:771–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769 case ValueType::Long:
770 return _data.l;
771 case ValueType::Int:
772 return static_cast<int64_t>(_data.i);
773 case ValueType::Double:
774 return static_cast<int64_t>(toDouble());
775 case ValueType::InternedString:
776 case ValueType::StaticString:

Callers 3

TEST_PFunction · 0.80
Long.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

TEST_PFunction · 0.64