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

Method JavaScriptLong

valdi/src/valdi/runtime/JavaScript/JavaScriptLong.cpp:18–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17JavaScriptLong::JavaScriptLong() = default;
18JavaScriptLong::JavaScriptLong(uint64_t unsignedInt) : _data(unsignedInt), _isUnsigned(true) {}
19JavaScriptLong::JavaScriptLong(int64_t signedInt) : _data(static_cast<uint64_t>(signedInt)) {}
20JavaScriptLong::JavaScriptLong(int32_t lowBits, int32_t highBits, bool isUnsigned)
21 : _data(packBits(lowBits, highBits)), _isUnsigned(isUnsigned) {}

Callers

nothing calls this directly

Calls 1

packBitsFunction · 0.85

Tested by

no test coverage detected