Documentation
¶
Index ¶
Constants ¶
View Source
const ByteCodeVersion uint16 = 0x0001
Constant for current Weblang bytecode version
View Source
const ClassType_Cms uint8 = 0x08
Weblang buil-in class type cms
View Source
const ClassType_Controller uint8 = 0x02
Weblang buil-in class type controller
View Source
const ClassType_Model uint8 = 0x04
Weblang buil-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 buil-in class type repository
View Source
const ClassType_Router uint8 = 0x03
Weblang buil-in class type router
View Source
const ClassType_Server uint8 = 0x01
Weblang buil-in class type server
View Source
const ClassType_Service uint8 = 0x06
Weblang buil-in class type service
View Source
const ClassType_View uint8 = 0x07
Weblang buil-in class type view
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"
ClassName [80]byte // Class name (max 80 symbols)
ClassType uint8 // Class type: object, server, controller, router, model, repository, service and view
ByteCodeVersion uint16 // Version of bytecode file
InstructionSetCount uint64 // Count of InstructionSet struct
ClassMethodsCount uint64 // Count of ClassMethodHeader struct
AttributesCount uint64 // 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: 336 bytes
func (*ClassHeader) WriteHeader ¶
func (header *ClassHeader) WriteHeader()
Write header data to struct. Use to prepare for write header struct to file
Click to show internal directories.
Click to hide internal directories.