MCPcopy Create free account
hub / github.com/deviceplug/btleplug / get_value

Method get_value

src/droidplug/jni/objects.rs:520–531  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

518 }
519
520 pub fn get_value(&self) -> Result<Vec<u8>> {
521 let value = self
522 .env
523 .call_method_unchecked(
524 self.internal,
525 self.get_value,
526 JavaType::Array(JavaType::Primitive(Primitive::Byte).into()),
527 &[],
528 )?
529 .l()?;
530 crate::droidplug::jni_utils::arrays::byte_array_to_vec(self.env, value.into_inner())
531 }
532
533 pub fn get_descriptors(&self) -> Result<Vec<JBluetoothGattDescriptor>> {
534 let obj = self

Callers 1

notificationsMethod · 0.80

Calls 2

byte_array_to_vecFunction · 0.85
into_innerMethod · 0.80

Tested by

no test coverage detected