Rizin
unix-like reverse engineering framework and cli tools
fatmach0.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2010-2013 nibble <nibble.ds@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#include <
rz_types.h
>
5
#include "
mach0_specs.h
"
6
7
#ifndef _INCLUDE_RZ_BIN_FATMACH0_H_
8
#define _INCLUDE_RZ_BIN_FATMACH0_H_
9
10
struct
rz_bin_fatmach0_obj_t
{
11
const
char
*
file
;
12
int
size
;
13
int
nfat_arch
;
14
struct
fat_header
hdr
;
15
struct
fat_arch
*
archs
;
16
RzBuffer
*
b
;
17
};
18
19
struct
rz_bin_fatmach0_arch_t
{
20
int
size
;
21
int
offset
;
22
RzBuffer
*
b
;
23
int
last
;
24
};
25
26
struct
rz_bin_fatmach0_arch_t
*
rz_bin_fatmach0_extract
(
struct
rz_bin_fatmach0_obj_t
*
bin
,
int
idx
,
int
*narch);
27
void
*
rz_bin_fatmach0_free
(
struct
rz_bin_fatmach0_obj_t
*
bin
);
28
struct
rz_bin_fatmach0_obj_t
*
rz_bin_fatmach0_new
(
const
char
*
file
);
29
struct
rz_bin_fatmach0_obj_t
*
rz_bin_fatmach0_from_bytes_new
(
const
ut8
*
buf
,
ut64
size
);
30
struct
rz_bin_fatmach0_obj_t
*
rz_bin_fatmach0_from_buffer_new
(
RzBuffer
*
b
);
31
#endif
rz_bin_fatmach0_extract
struct rz_bin_fatmach0_arch_t * rz_bin_fatmach0_extract(struct rz_bin_fatmach0_obj_t *bin, int idx, int *narch)
Definition:
fatmach0.c:53
rz_bin_fatmach0_from_bytes_new
struct rz_bin_fatmach0_obj_t * rz_bin_fatmach0_from_bytes_new(const ut8 *buf, ut64 size)
Definition:
fatmach0.c:125
rz_bin_fatmach0_from_buffer_new
struct rz_bin_fatmach0_obj_t * rz_bin_fatmach0_from_buffer_new(RzBuffer *b)
Definition:
fatmach0.c:112
rz_bin_fatmach0_new
struct rz_bin_fatmach0_obj_t * rz_bin_fatmach0_new(const char *file)
Definition:
fatmach0.c:88
rz_bin_fatmach0_free
void * rz_bin_fatmach0_free(struct rz_bin_fatmach0_obj_t *bin)
Definition:
fatmach0.c:78
size
voidpf void uLong size
Definition:
ioapi.h:138
buf
voidpf void * buf
Definition:
ioapi.h:138
ut8
uint8_t ut8
Definition:
lh5801.h:11
mach0_specs.h
setup.idx
int idx
Definition:
setup.py:197
rz_types.h
b
#define b(i)
Definition:
sha256.c:42
bin
Definition:
malloc.c:26
fat_arch
Definition:
mach0_defines.h:987
fat_header
Definition:
mach0_defines.h:982
file
Definition:
gzappend.c:170
rz_bin_fatmach0_arch_t
Definition:
fatmach0.h:19
rz_bin_fatmach0_arch_t::last
int last
Definition:
fatmach0.h:23
rz_bin_fatmach0_arch_t::size
int size
Definition:
fatmach0.h:20
rz_bin_fatmach0_arch_t::offset
int offset
Definition:
fatmach0.h:21
rz_bin_fatmach0_arch_t::b
RzBuffer * b
Definition:
fatmach0.h:22
rz_bin_fatmach0_obj_t
Definition:
fatmach0.h:10
rz_bin_fatmach0_obj_t::nfat_arch
int nfat_arch
Definition:
fatmach0.h:13
rz_bin_fatmach0_obj_t::file
const char * file
Definition:
fatmach0.h:11
rz_bin_fatmach0_obj_t::size
int size
Definition:
fatmach0.h:12
rz_bin_fatmach0_obj_t::hdr
struct fat_header hdr
Definition:
fatmach0.h:14
rz_bin_fatmach0_obj_t::b
RzBuffer * b
Definition:
fatmach0.h:16
rz_bin_fatmach0_obj_t::archs
struct fat_arch * archs
Definition:
fatmach0.h:15
rz_buf_t
Definition:
rz_buf.h:43
ut64
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
librz
bin
format
mach0
fatmach0.h
Generated by
1.9.1