class

package
v0.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Class struct of Weblang bytecode

Index

Constants

View Source
const ByteCodeVersion uint16 = 0x0007

Constant for current Weblang bytecode version

View Source
const ClassType_Cms uint8 = 0x08

Weblang built-in class type cms

View Source
const ClassType_Controller uint8 = 0x02

Weblang built-in class type controller

View Source
const ClassType_Event uint8 = 0x0a

Weblang built-in class type event

View Source
const ClassType_Firewall uint8 = 0x09

Weblang built-in class type firewall

View Source
const ClassType_Model uint8 = 0x04

Weblang built-in class type model

View Source
const ClassType_Object uint8 = 0x00

Weblang build-in class type object

View Source
const ClassType_Repository uint8 = 0x05

Weblang built-in class type repository

View Source
const ClassType_Router uint8 = 0x03

Weblang built-in class type router

View Source
const ClassType_Server uint8 = 0x01

Weblang built-in class type server

View Source
const ClassType_Service uint8 = 0x06

Weblang built-in class type service

View Source
const ClassType_View uint8 = 0x07

Weblang built-in class type view

View Source
const HeaderSize int64 = 75

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassHeader

type ClassHeader struct {
	FileFormatText      [8]byte  // First 8 bytes of file. It's contains "WEBLANG\x0f"
	ByteCodeVersion     uint16   // Version of bytecode file
	ClassType           uint8    // Class type: object, server, controller, router, model, repository, service and view
	ClassNameLength     int64    // Class name length (bytes)
	InstructionSetCount int64    // Count of InstructionSet struct
	ClassMethodsCount   int64    // Count of ClassMethodHeader struct
	AttributesCount     int64    // Count of declared class atributes
	SourceCodeHash      [32]byte // Sha-256 hash of sourcecode file. For sourcefile changes detection
}

Header struct for Weblang bytecode class file. Binary data block size: 75 bytes

func (*ClassHeader) WriteHeader

func (header *ClassHeader) WriteHeader() error

Write header data to struct. Use to prepare for write header struct to file

Directories

Path Synopsis
Class attributes struct of Weblang bytcode
Class attributes struct of Weblang bytcode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL