|
#define | DUMP_DEBUG_INFO 1 |
| Dumping compiled mruby script.
|
|
#define | DUMP_ENDIAN_BIG 2 |
|
#define | DUMP_ENDIAN_LIL 4 |
|
#define | DUMP_ENDIAN_NAT 6 |
|
#define | DUMP_ENDIAN_MASK 6 |
|
#define | MRB_DUMP_OK 0 |
|
#define | MRB_DUMP_GENERAL_FAILURE (-1) |
|
#define | MRB_DUMP_WRITE_FAULT (-2) |
|
#define | MRB_DUMP_READ_FAULT (-3) |
|
#define | MRB_DUMP_CRC_ERROR (-4) |
|
#define | MRB_DUMP_INVALID_FILE_HEADER (-5) |
|
#define | MRB_DUMP_INVALID_IREP (-6) |
|
#define | MRB_DUMP_INVALID_ARGUMENT (-7) |
|
#define | MRB_DUMP_NULL_SYM_LEN 0xFFFF |
|
#define | RITE_BINARY_IDENT "RITE" |
|
#define | RITE_BINARY_IDENT_LIL "ETIR" |
|
#define | RITE_BINARY_FORMAT_VER "0006" |
|
#define | RITE_COMPILER_NAME "MATZ" |
|
#define | RITE_COMPILER_VERSION "0000" |
|
#define | RITE_VM_VER "0002" |
|
#define | RITE_BINARY_EOF "END\0" |
|
#define | RITE_SECTION_IREP_IDENT "IREP" |
|
#define | RITE_SECTION_DEBUG_IDENT "DBG\0" |
|
#define | RITE_SECTION_LV_IDENT "LVAR" |
|
#define | MRB_DUMP_DEFAULT_STR_LEN 128 |
|
#define | MRB_DUMP_ALIGNMENT sizeof(uint32_t) |
|
#define | RITE_SECTION_HEADER |
|
#define | RITE_LV_NULL_MARK UINT16_MAX |
|
|
int | mrb_dump_irep (mrb_state *mrb, mrb_irep *irep, uint8_t flags, uint8_t **bin, size_t *bin_size) |
|
int | mrb_dump_irep_binary (mrb_state *, mrb_irep *, uint8_t, FILE *) |
|
int | mrb_dump_irep_cfunc (mrb_state *mrb, mrb_irep *, uint8_t flags, FILE *f, const char *initname) |
|
mrb_irep * | mrb_read_irep_file (mrb_state *, FILE *) |
|
mrb_value | mrb_load_irep_file (mrb_state *, FILE *) |
|
mrb_value | mrb_load_irep_file_cxt (mrb_state *, FILE *, mrbc_context *) |
|
mrb_irep * | mrb_read_irep (mrb_state *, const uint8_t *) |
|
mrb_irep * | mrb_read_irep_buf (mrb_state *, const void *, size_t) |
|
static int | bigendian_p () |
|
static size_t | uint8_to_bin (uint8_t s, uint8_t *bin) |
|
static size_t | uint16_to_bin (uint16_t s, uint8_t *bin) |
|
static size_t | uint32_to_bin (uint32_t l, uint8_t *bin) |
|
static size_t | uint32l_to_bin (uint32_t l, uint8_t *bin) |
|
static uint32_t | bin_to_uint32 (const uint8_t *bin) |
|
static uint32_t | bin_to_uint32l (const uint8_t *bin) |
|
static uint16_t | bin_to_uint16 (const uint8_t *bin) |
|
static uint8_t | bin_to_uint8 (const uint8_t *bin) |
|
uint16_t | calc_crc_16_ccitt (const uint8_t *src, size_t nbytes, uint16_t crc) |
|
- mruby binary dumper (mrbc binary format)
See Copyright Notice in mruby.h