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

Method setEnumCase

valdi/src/valdi/android/JavaEnumClassDelegate.cpp:51–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void JavaEnumClassDelegate::setEnumCase(size_t index, const JavaValue& javaValue) {
52 Valdi::InlineContainerAllocator<JavaEnumClassDelegate, IndirectJavaGlobalRef> allocator;
53 allocator.getContainerStartPtr(this)[index] = IndirectJavaGlobalRef::make(javaValue.getObject(), "EnumValue");
54}
55
56JavaValue JavaEnumClassDelegate::getEnumCase(size_t index) const {
57 Valdi::InlineContainerAllocator<JavaEnumClassDelegate, IndirectJavaGlobalRef> allocator;

Callers 1

Calls 2

getObjectMethod · 0.65
getContainerStartPtrMethod · 0.45

Tested by

no test coverage detected