| 141 | void nativeDestroy(jlong ptr) { |
| 142 | delete reinterpret_cast<Valdi::Marshaller*>(ptr); |
| 143 | } |
| 144 | |
| 145 | jint 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 |
no test coverage detected