Rizin
unix-like reverse engineering framework and cli tools
class_interface.h File Reference
#include <rz_types.h>
#include <rz_util.h>
#include <rz_bin.h>

Go to the source code of this file.

Classes

struct  java_interface_t
 

Macros

#define java_interface_free(x)   free(x)
 

Typedefs

typedef struct java_interface_t Interface
 

Functions

Interfacejava_interface_new (RzBuffer *buf, ut64 offset)
 

Macro Definition Documentation

◆ java_interface_free

#define java_interface_free (   x)    free(x)

Definition at line 16 of file class_interface.h.

Typedef Documentation

◆ Interface

typedef struct java_interface_t Interface

Function Documentation

◆ java_interface_new()

Interface* java_interface_new ( RzBuffer buf,
ut64  offset 
)

Definition at line 6 of file class_interface.c.

6  {
7  Interface *attr = RZ_NEW0(Interface);
9  attr->offset = offset;
10  if (!rz_buf_read_be16(buf, &attr->index)) {
11  free(attr);
12  return NULL;
13  }
14 
15  return attr;
16 }
#define NULL
Definition: cris-opc.c:27
RZ_API void Ht_() free(HtName_(Ht) *ht)
Definition: ht_inc.c:130
voidpf uLong offset
Definition: ioapi.h:144
voidpf void * buf
Definition: ioapi.h:138
#define rz_return_val_if_fail(expr, val)
Definition: rz_assert.h:108
#define rz_buf_read_be16(b, result)
Definition: rz_buf.h:280
#define RZ_NEW0(x)
Definition: rz_types.h:284

References free(), java_interface_t::index, NULL, java_interface_t::offset, rz_buf_read_be16, RZ_NEW0, and rz_return_val_if_fail.

Referenced by java_class_parse().