Rizin
unix-like reverse engineering framework and cli tools
class_interface.c
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2021 deroad <wargio@libero.it>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#include "
class_interface.h
"
5
6
Interface
*
java_interface_new
(
RzBuffer
*
buf
,
ut64
offset
) {
7
Interface
*attr =
RZ_NEW0
(
Interface
);
8
rz_return_val_if_fail
(attr,
NULL
);
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
}
java_interface_new
Interface * java_interface_new(RzBuffer *buf, ut64 offset)
Definition:
class_interface.c:6
class_interface.h
NULL
#define NULL
Definition:
cris-opc.c:27
free
RZ_API void Ht_() free(HtName_(Ht) *ht)
Definition:
ht_inc.c:130
offset
voidpf uLong offset
Definition:
ioapi.h:144
buf
voidpf void * buf
Definition:
ioapi.h:138
rz_return_val_if_fail
#define rz_return_val_if_fail(expr, val)
Definition:
rz_assert.h:108
rz_buf_read_be16
#define rz_buf_read_be16(b, result)
Definition:
rz_buf.h:280
RZ_NEW0
#define RZ_NEW0(x)
Definition:
rz_types.h:284
java_interface_t
Definition:
class_interface.h:10
java_interface_t::offset
ut64 offset
Definition:
class_interface.h:11
java_interface_t::index
ut16 index
Definition:
class_interface.h:12
rz_buf_t
Definition:
rz_buf.h:43
ut64
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
librz
bin
format
java
class_interface.c
Generated by
1.9.1