Rizin
unix-like reverse engineering framework and cli tools
luac_specs_54.h File Reference

Go to the source code of this file.

Macros

#define luac_cast(t, exp)   ((t)(exp))
 
#define luac_cast_num(i)   luac_cast(double, (i))
 
#define luac_cast_int(i)   luac_cast(int, (i))
 
#define LUAC_54_FORMAT_OFFSET   0x05
 
#define LUAC_54_LUAC_DATA_OFFSET   0x06
 
#define LUAC_54_INSTRUCTION_SIZE_OFFSET   0x0C
 
#define LUAC_54_INTEGER_SIZE_OFFSET   0x0D
 
#define LUAC_54_NUMBER_SIZE_OFFSET   0x0E
 
#define LUAC_54_INTEGER_VALID_OFFSET   0x0F
 
#define LUAC_54_NUMBER_VALID_OFFSET   0x17
 
#define LUAC_54_UPVALUES_NUMBER_OFFSET   0x1F
 
#define LUAC_54_SIGNATURE_SIZE   4
 
#define LUAC_54_VERSION_SIZE   1
 
#define LUAC_54_FORMAT_SIZE   1
 
#define LUAC_54_LUAC_DATA_SIZE   6
 
#define LUAC_54_INSTRUCTION_SIZE_SIZE   1
 
#define LUAC_54_INTEGER_SIZE_SIZE   1
 
#define LUAC_54_NUMBER_SIZE_SIZE   1
 
#define LUAC_54_INTEGER_VALID_SIZE   8
 
#define LUAC_54_NUMBER_VALID_SIZE   8
 
#define LUAC_54_UPVALUES_NUMBER_SIZE   1
 
#define LUAC_54_FORMAT   0 /* this is the official format */
 
#define LUAC_54_DATA   "\x19\x93\r\n\x1a\n"
 
#define LUAC_54_INT_VALIDATION   luac_cast_int(0x5678)
 
#define LUAC_54_NUMBER_VALIDATION   luac_cast_num(370.5)
 
#define LUAC_54_HDRSIZE   0x20
 
#define LUAC_FILENAME_OFFSET   0x20
 

Typedefs

typedef double LUA_NUMBER
 
typedef ut64 LUA_INTEGER
 

Macro Definition Documentation

◆ LUAC_54_DATA

#define LUAC_54_DATA   "\x19\x93\r\n\x1a\n"

Definition at line 43 of file luac_specs_54.h.

◆ LUAC_54_FORMAT

#define LUAC_54_FORMAT   0 /* this is the official format */

Definition at line 42 of file luac_specs_54.h.

◆ LUAC_54_FORMAT_OFFSET

#define LUAC_54_FORMAT_OFFSET   0x05

Definition at line 22 of file luac_specs_54.h.

◆ LUAC_54_FORMAT_SIZE

#define LUAC_54_FORMAT_SIZE   1

Definition at line 33 of file luac_specs_54.h.

◆ LUAC_54_HDRSIZE

#define LUAC_54_HDRSIZE   0x20

Definition at line 47 of file luac_specs_54.h.

◆ LUAC_54_INSTRUCTION_SIZE_OFFSET

#define LUAC_54_INSTRUCTION_SIZE_OFFSET   0x0C

Definition at line 24 of file luac_specs_54.h.

◆ LUAC_54_INSTRUCTION_SIZE_SIZE

#define LUAC_54_INSTRUCTION_SIZE_SIZE   1

Definition at line 35 of file luac_specs_54.h.

◆ LUAC_54_INT_VALIDATION

#define LUAC_54_INT_VALIDATION   luac_cast_int(0x5678)

Definition at line 44 of file luac_specs_54.h.

◆ LUAC_54_INTEGER_SIZE_OFFSET

#define LUAC_54_INTEGER_SIZE_OFFSET   0x0D

Definition at line 25 of file luac_specs_54.h.

◆ LUAC_54_INTEGER_SIZE_SIZE

#define LUAC_54_INTEGER_SIZE_SIZE   1

Definition at line 36 of file luac_specs_54.h.

◆ LUAC_54_INTEGER_VALID_OFFSET

#define LUAC_54_INTEGER_VALID_OFFSET   0x0F

Definition at line 27 of file luac_specs_54.h.

◆ LUAC_54_INTEGER_VALID_SIZE

#define LUAC_54_INTEGER_VALID_SIZE   8

Definition at line 38 of file luac_specs_54.h.

◆ LUAC_54_LUAC_DATA_OFFSET

#define LUAC_54_LUAC_DATA_OFFSET   0x06

Definition at line 23 of file luac_specs_54.h.

◆ LUAC_54_LUAC_DATA_SIZE

#define LUAC_54_LUAC_DATA_SIZE   6

Definition at line 34 of file luac_specs_54.h.

◆ LUAC_54_NUMBER_SIZE_OFFSET

#define LUAC_54_NUMBER_SIZE_OFFSET   0x0E

Definition at line 26 of file luac_specs_54.h.

◆ LUAC_54_NUMBER_SIZE_SIZE

#define LUAC_54_NUMBER_SIZE_SIZE   1

Definition at line 37 of file luac_specs_54.h.

◆ LUAC_54_NUMBER_VALID_OFFSET

#define LUAC_54_NUMBER_VALID_OFFSET   0x17

Definition at line 28 of file luac_specs_54.h.

◆ LUAC_54_NUMBER_VALID_SIZE

#define LUAC_54_NUMBER_VALID_SIZE   8

Definition at line 39 of file luac_specs_54.h.

◆ LUAC_54_NUMBER_VALIDATION

#define LUAC_54_NUMBER_VALIDATION   luac_cast_num(370.5)

Definition at line 45 of file luac_specs_54.h.

◆ LUAC_54_SIGNATURE_SIZE

#define LUAC_54_SIGNATURE_SIZE   4

Definition at line 31 of file luac_specs_54.h.

◆ LUAC_54_UPVALUES_NUMBER_OFFSET

#define LUAC_54_UPVALUES_NUMBER_OFFSET   0x1F

Definition at line 29 of file luac_specs_54.h.

◆ LUAC_54_UPVALUES_NUMBER_SIZE

#define LUAC_54_UPVALUES_NUMBER_SIZE   1

Definition at line 40 of file luac_specs_54.h.

◆ LUAC_54_VERSION_SIZE

#define LUAC_54_VERSION_SIZE   1

Definition at line 32 of file luac_specs_54.h.

◆ luac_cast

#define luac_cast (   t,
  exp 
)    ((t)(exp))

Definition at line 16 of file luac_specs_54.h.

◆ luac_cast_int

#define luac_cast_int (   i)    luac_cast(int, (i))

Definition at line 18 of file luac_specs_54.h.

◆ luac_cast_num

#define luac_cast_num (   i)    luac_cast(double, (i))

Definition at line 17 of file luac_specs_54.h.

◆ LUAC_FILENAME_OFFSET

#define LUAC_FILENAME_OFFSET   0x20

Definition at line 50 of file luac_specs_54.h.

Typedef Documentation

◆ LUA_INTEGER

typedef ut64 LUA_INTEGER

Definition at line 12 of file luac_specs_54.h.

◆ LUA_NUMBER

typedef double LUA_NUMBER

Definition at line 11 of file luac_specs_54.h.