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 
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 }
Interface * java_interface_new(RzBuffer *buf, ut64 offset)
#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
ut64(WINAPI *w32_GetEnabledXStateFeatures)()