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

Function nativeSize

valdi/src/valdi/android/MarshallerJNI.cpp:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141void nativeDestroy(jlong ptr) {
142 delete reinterpret_cast<Valdi::Marshaller*>(ptr);
143}
144
145jint nativeSize(jlong ptr) {
146 auto* marshaller = unwrap(nullptr, ptr);
147 if (marshaller == nullptr) {
148 return 0;
149 }
150
151 return static_cast<jint>(marshaller->size());
152}
153

Callers 1

ValdiMarshallerCPPClass · 0.85

Calls 2

unwrapFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected