jvmti_rs/wrapper/facade/
object.rs1use crate::{sys::*, errors::*, objects::*, JVMTIFacadeEnv};
2
3impl<'a> JVMTIFacadeEnv<'a> {
4 pub fn get_object_size(&self, obj: &JObject) -> Result<jlong> {
5 self.jvmti_rust().get_object_size(obj)
6 }
7
8 pub fn get_object_hash_code(&self, obj: &JObject) -> Result<jint> {
9 self.jvmti_rust().get_object_hash_code(obj)
10 }
11
12 pub fn get_object_monitor_usage(&self, obj: &JObject) -> Result<JMonitorUsage> {
13 self.jvmti_rust().get_object_monitor_usage(obj)
14 }
15}