pub struct InMemoryDexClassLoader { /* private fields */ }
Expand description
从包含 DEX 文件的缓冲区加载类的 ClassLoader 实现。这可用于执行尚未写入本地文件系统的代码。
Implementations§
Source§impl InMemoryDexClassLoader
impl InMemoryDexClassLoader
Sourcepub fn new(dex_buffer: &ByteBuffer, parent: &ClassLoader) -> Self
pub fn new(dex_buffer: &ByteBuffer, parent: &ClassLoader) -> Self
创建一个新的内存中 DEX 类加载器。
dex_buffer
包含 buffer.position() 和 buffer.limit() 之间的 DEX 文件内容的缓冲区。
parent
用于委托的父类加载器。
Trait Implementations§
Source§impl Debug for InMemoryDexClassLoader
impl Debug for InMemoryDexClassLoader
Source§impl Deref for InMemoryDexClassLoader
impl Deref for InMemoryDexClassLoader
Source§impl From<&GlobalRef> for InMemoryDexClassLoader
impl From<&GlobalRef> for InMemoryDexClassLoader
Source§impl Into<GlobalRef> for &InMemoryDexClassLoader
impl Into<GlobalRef> for &InMemoryDexClassLoader
Source§impl JObjNew for InMemoryDexClassLoader
impl JObjNew for InMemoryDexClassLoader
Source§impl JType for InMemoryDexClassLoader
impl JType for InMemoryDexClassLoader
Source§impl PartialEq for InMemoryDexClassLoader
impl PartialEq for InMemoryDexClassLoader
Auto Trait Implementations§
impl Freeze for InMemoryDexClassLoader
impl RefUnwindSafe for InMemoryDexClassLoader
impl Send for InMemoryDexClassLoader
impl Sync for InMemoryDexClassLoader
impl Unpin for InMemoryDexClassLoader
impl UnwindSafe for InMemoryDexClassLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more