Rizin
unix-like reverse engineering framework and cli tools
pyc_magic.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2016-2020 c0riolis
2
// SPDX-FileCopyrightText: 2016-2020 x0urc3
3
// SPDX-License-Identifier: LGPL-3.0-only
4
5
#ifndef PYC_MAGIC_H
6
#define PYC_MAGIC_H
7
8
#include <
rz_types.h
>
9
10
struct
pyc_version
{
11
ut32
magic
;
12
char
*
version
;
13
char
*
revision
;
14
};
15
16
struct
pyc_version
get_pyc_version
(
ut32
magic
);
17
18
double
version2double
(
const
char
*
version
);
19
20
bool
magic_int_within
(
ut32
target_magic,
ut32
lower,
ut32
uppper,
bool
*
error
);
21
22
#endif
ut32
uint32_t ut32
Definition:
demangler_util.h:31
version
Definition:
version.py:1
get_pyc_version
struct pyc_version get_pyc_version(ut32 magic)
Definition:
pyc_magic.c:273
magic_int_within
bool magic_int_within(ut32 target_magic, ut32 lower, ut32 uppper, bool *error)
Definition:
pyc_magic.c:283
version2double
double version2double(const char *version)
Definition:
pyc_magic.c:316
rz_types.h
pyc_version
Definition:
pyc_magic.h:10
pyc_version::version
char * version
Definition:
pyc_magic.h:12
pyc_version::magic
ut32 magic
Definition:
pyc_magic.h:11
pyc_version::revision
char * revision
Definition:
pyc_magic.h:13
error
void error(const char *msg)
Definition:
untgz.c:593
librz
bin
format
pyc
pyc_magic.h
Generated by
1.9.1