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

Method valueObjectToBool

valdi/src/valdi/android/JavaValueDelegate.cpp:323–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322bool JavaValueDelegate::valueToBool(const JavaValue& value, Valdi::ExceptionTracker& exceptionTracker) const {
323 return value.getBoolean() != 0u;
324}
325
326int32_t JavaValueDelegate::valueObjectToInt(const JavaValue& value, Valdi::ExceptionTracker& exceptionTracker) const {
327 return JavaEnv::getCache().getNumberIntValueMethod().call(javaValueToObject(value));
328}

Callers 1

marshallMethod · 0.45

Calls 2

javaValueToObjectFunction · 0.85
callMethod · 0.65

Tested by

no test coverage detected