Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
BytecodeSerializer.cpp File Reference
#include "BytecodeSerializer.hpp"
#include <cstring>
#include <stdexcept>
#include <filesystem>
#include <fstream>
#include "metadata.h"
Include dependency graph for BytecodeSerializer.cpp:

Go to the source code of this file.

Namespaces

namespace  Phasor
 The Phasor Programming Language and Runtime.

Functions

void init_crc32_table ()
 Init CRC32 Table.

Variables

const uint8_t SECTION_CONSTANTS = 0x01
const uint8_t SECTION_VARIABLES = 0x02
const uint8_t SECTION_INSTRUCTIONS = 0x03
const uint8_t SECTION_FUNCTIONS = 0x04
static uint32_t crc32_table [256]
static bool crc32_table_initialized = false

Function Documentation

◆ init_crc32_table()

void init_crc32_table ( )

Init CRC32 Table.

Definition at line 18 of file BytecodeSerializer.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ crc32_table

uint32_t crc32_table[256]
static

Definition at line 14 of file BytecodeSerializer.cpp.

◆ crc32_table_initialized

bool crc32_table_initialized = false
static

Definition at line 15 of file BytecodeSerializer.cpp.

◆ SECTION_CONSTANTS

const uint8_t SECTION_CONSTANTS = 0x01

Definition at line 9 of file BytecodeSerializer.cpp.

◆ SECTION_FUNCTIONS

const uint8_t SECTION_FUNCTIONS = 0x04

Definition at line 12 of file BytecodeSerializer.cpp.

◆ SECTION_INSTRUCTIONS

const uint8_t SECTION_INSTRUCTIONS = 0x03

Definition at line 11 of file BytecodeSerializer.cpp.

◆ SECTION_VARIABLES

const uint8_t SECTION_VARIABLES = 0x02

Definition at line 10 of file BytecodeSerializer.cpp.