54 #if defined(ENABLE_ZLIB)
64 void add(
char *classpath);
68 using std::list<list_classpath_entry*>::iterator;
71 using std::list<list_classpath_entry*>::begin;
72 using std::list<list_classpath_entry*>::end;
89 operator bool() {
return data != NULL; }
136 #ifdef ENABLE_VERIFIER
void init(classinfo *, uint8_t *, size_t, const char *)
const char * get_path() const
static int64_t read_s8_be(const uint8_t *src)
read int64_t from pointer big endian
ClassBuffer(Utf8String classname)
Locate and load class file for class.
void skip_nbytes(size_t num_bytes)
Skip block of classfile data.
static uint64_t read_u8_be(const uint8_t *src)
read uint64_t from pointer big endian
Dummy implementation of a mutex.
void add_from_property(const char *key)
Adds a classpath form a property entry to the global classpath entries list.
void exceptions_throw_classformaterror(classinfo *c, const char *message,...)
JNIEnv jthread jobject jclass jlong size
ClassFileVersion version() const
ClassBuffer & operator=(const ClassBuffer &)
A version of the Java class file format.
static uint8_t read_u1_be(const uint8_t *src)
read uint8_t from pointer big endian
void read_nbytes(uint8_t *dst, size_t num_bytes)
Transfer block of classfile into a buffer.
static double read_double_be(const uint8_t *src)
static uint16_t read_u2_be(const uint8_t *src)
read uint16_t from pointer big endian
void free()
Free memory held by this classbuffer.
classinfo * get_class() const
void add(char *classpath)
Adds a classpath to the global classpath entries list.
static float read_float_be(const uint8_t *src)
size_t remaining()
The number of unread bytes in the buffer.
bool check_size(size_t sz)
Assert that at least <sz> bytes are left to read.
const uint8_t * get_data() const
#define MCOPY(dest, src, type, num)
static int32_t read_s4_be(const uint8_t *src)
read int32_t from pointer big endian
static uint32_t read_u4_be(const uint8_t *src)
read uint32_t from pointer big endian
size_t num_bytes(const uint16_t *, size_t)