rizin/librz/bin/format/java/class_interface.c
Giovanni 7cfddb1da8
Java rewrite with LGPL license (#804)
* Rewritten RzBin java plugin (LGPL3)
* Rewritten java_core.c (LGPL3)
* Rewritten java RzAsm plugin (LGPL3)
* Rewritten java RzAnalysis plugin (LGPL3)
* Resolve constant_pool.<index> when rzbin is available.
* Updated tests with proper ones
* Support java <1.0.2 (i.e. OAK) file format
* Added constant pool resolver `javar`
* Added tests from java 1.7 to 15
2021-03-19 22:00:19 +08:00

12 lines
344 B
C

// SPDX-FileCopyrightText: 2021 deroad <wargio@libero.it>
// SPDX-License-Identifier: LGPL-3.0-only
#include "class_interface.h"
Interface *java_interface_new(RzBuffer *buf, ut64 offset) {
Interface *attr = RZ_NEW0(Interface);
rz_return_val_if_fail(attr, NULL);
attr->offset = offset;
attr->index = rz_buf_read_be16(buf);
return attr;
}