Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
phasor.Metadata Namespace Reference

Functions

int _ascii_to_u32_le (str s)

Variables

int MAGIC = _ascii_to_u32_le("PHSB")
int VERSION = 0x03000000
int HEADER_SIZE = 16
int SEC_CONSTANTS = 0x01
int SEC_VARIABLES = 0x02
int SEC_INSTRUCTIONS = 0x03
int SEC_FUNCTIONS = 0x04

Detailed Description

phasor.Metadata
================
Binary format constants shared by the Serializer and Deserializer.

Function Documentation

◆ _ascii_to_u32_le()

int phasor.Metadata._ascii_to_u32_le ( str s)
protected
Pack a 4-character ASCII string into a little-endian uint32 magic number.

Definition at line 7 of file Metadata.py.

Variable Documentation

◆ HEADER_SIZE

int phasor.Metadata.HEADER_SIZE = 16

Definition at line 14 of file Metadata.py.

◆ MAGIC

int phasor.Metadata.MAGIC = _ascii_to_u32_le("PHSB")

Definition at line 12 of file Metadata.py.

◆ SEC_CONSTANTS

int phasor.Metadata.SEC_CONSTANTS = 0x01

Definition at line 16 of file Metadata.py.

◆ SEC_FUNCTIONS

int phasor.Metadata.SEC_FUNCTIONS = 0x04

Definition at line 19 of file Metadata.py.

◆ SEC_INSTRUCTIONS

int phasor.Metadata.SEC_INSTRUCTIONS = 0x03

Definition at line 18 of file Metadata.py.

◆ SEC_VARIABLES

int phasor.Metadata.SEC_VARIABLES = 0x02

Definition at line 17 of file Metadata.py.

◆ VERSION

int phasor.Metadata.VERSION = 0x03000000

Definition at line 13 of file Metadata.py.