[][src]Struct jimage_sys::Library

pub struct Library {
    pub JIMAGE_Open: unsafe extern "C" fn(name: *const c_char, error: *mut jint) -> *mut JImageFile,
    pub JIMAGE_Close: unsafe extern "C" fn(image: *mut JImageFile),
    pub JIMAGE_PackageToModule: unsafe extern "C" fn(image: *mut JImageFile, package_name: *const c_char) -> *const c_char,
    pub JIMAGE_FindResource: unsafe extern "C" fn(image: *mut JImageFile, module_name: *const c_char, version: *const c_char, name: *const c_char, size: *mut jlong) -> JImageLocationRef,
    pub JIMAGE_GetResource: unsafe extern "C" fn(image: *mut JImageFile, location: JImageLocationRef, buffer: *mut c_char, size: jlong) -> jlong,
    pub JIMAGE_ResourceIterator: unsafe extern "C" fn(image: *mut JImageFile, visitor: JImageResourceVisitor, arg: *mut c_void),
}

jimage.dll fns / entry points. See jimage.hpp for more details

Fields

JIMAGE_Open: unsafe extern "C" fn(name: *const c_char, error: *mut jint) -> *mut JImageFileJIMAGE_Close: unsafe extern "C" fn(image: *mut JImageFile)JIMAGE_PackageToModule: unsafe extern "C" fn(image: *mut JImageFile, package_name: *const c_char) -> *const c_charJIMAGE_FindResource: unsafe extern "C" fn(image: *mut JImageFile, module_name: *const c_char, version: *const c_char, name: *const c_char, size: *mut jlong) -> JImageLocationRefJIMAGE_GetResource: unsafe extern "C" fn(image: *mut JImageFile, location: JImageLocationRef, buffer: *mut c_char, size: jlong) -> jlongJIMAGE_ResourceIterator: unsafe extern "C" fn(image: *mut JImageFile, visitor: JImageResourceVisitor, arg: *mut c_void)

Methods

impl Library[src]

pub fn load(path: &Path) -> Result<Self>[src]

Load a given libjimage.so or jimage.dll path.

pub fn from(lib: Library) -> Result<Self>[src]

Load symbols from an already loaded DLL or SO file.

Trait Implementations

impl TryFrom<Library> for Library[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Library

impl Send for Library

impl Sync for Library

impl Unpin for Library

impl UnwindSafe for Library

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.