CACAO
Functions
native.cpp File Reference

Go to the source code of this file.

Functions

static Utf8String native_make_overloaded_function (Utf8String name, Utf8String descriptor)
 
static void native_insert_char (Buffer<> &name, u2 c)
 
static Utf8String native_method_symbol (Utf8String classname, Utf8String methodname)
 
bool operator< (const NativeMethod &first, const NativeMethod &second)
 
java_handle_tnative_new_and_init (classinfo *c)
 Registers a new native agent by specified by it's library name and with an optional options string. More...
 
java_handle_tnative_new_and_init_string (classinfo *c, java_handle_t *s)
 

Function Documentation

static void native_insert_char ( Buffer<> &  name,
u2  c 
)
inlinestatic

Definition at line 120 of file native.cpp.

static Utf8String native_make_overloaded_function ( Utf8String  name,
Utf8String  descriptor 
)
static

Definition at line 63 of file native.cpp.

static Utf8String native_method_symbol ( Utf8String  classname,
Utf8String  methodname 
)
static

Definition at line 172 of file native.cpp.

java_handle_t* native_new_and_init ( classinfo c)

Registers a new native agent by specified by it's library name and with an optional options string.

Parameters
libraryName of the native agent library.
optionsThe options string or NULL if not specified. Registers a new native agent by specified by a path to it's library and with an optional options string.
pathPath of the native agent library.
optionsThe options string or NULL if not specified. Loads all registered native agents and in turn calls their exported start-up functions (Agent_OnLoad). If one of the agents reports an error during start-up, the loading is stopped.
Returns
True if all agents were loaded successfully, false if one of them was not found or reported an error.

Definition at line 729 of file native.cpp.

java_handle_t* native_new_and_init_string ( classinfo c,
java_handle_t s 
)

Definition at line 762 of file native.cpp.

bool operator< ( const NativeMethod first,
const NativeMethod second 
)

Definition at line 212 of file native.cpp.