attribute

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: 0 Imported by: 0

Documentation

Overview

Class attributes struct of Weblang bytcode

Index

Constants

View Source
const AttributeHeaderSize int64 = 17

Size of one AttributeHeader

View Source
const AttributeType_Float uint8 = 0x03

Attribute type: float

View Source
const AttributeType_Int uint8 = 0x02

Attribute type: int

View Source
const AttributeType_ObjReference uint8 = 0x04

Attribute type: object reference (pointer to object)

View Source
const AttributeType_String uint8 = 0x01

Attribute type: string

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Header *AttributeHeader
	Value  []byte
}

Class attribute struct

type AttributeHeader

type AttributeHeader struct {
	AttributeNameLength int64 // Attribute name length (bytes)
	AttributeType       uint8 // attribute type: string, int, float or objectReference
	AttributeValueSize  int64 // Data size of attribute value in bytes
}

Class attributes header struct

Jump to

Keyboard shortcuts

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