ByteCode.h 384 B

12345678910111213141516171819
  1. #ifndef BYTECODE_H
  2. #define BYTECODE_H
  3. #include "Operation.h"
  4. typedef struct {
  5. int capacity;
  6. int length;
  7. unsigned char* code;
  8. } ByteCode;
  9. ByteCode* bcInit();
  10. void bcDelete(ByteCode* bc);
  11. int bcReserveBytes(ByteCode* bc, int length);
  12. void bcSetBytes(ByteCode* bc, int p, const void* data, int length);
  13. void bcAddBytes(ByteCode* bc, const void* data, int length);
  14. #endif