Documentation
¶
Index ¶
- type ByteBuilder
- func (b *ByteBuilder) Buf() []byte
- func (b *ByteBuilder) FinishSize(firstUsedByte int, lastUsedByte int, optimizeEmpty bool)
- func (b *ByteBuilder) Len() int
- func (b *ByteBuilder) Print() string
- func (b *ByteBuilder) PrintLegend() string
- func (b *ByteBuilder) ReserveSpaceForSize() int
- func (b *ByteBuilder) SetCursorFinish()
- func (b *ByteBuilder) SetCursorStart()
- func (b *ByteBuilder) WriteElementCount(v int)
- func (b *ByteBuilder) WriteFieldmask()
- func (b *ByteBuilder) WriteString(v string)
- func (b *ByteBuilder) WriteVariantIndex(v int)
- type ByteColor
- type KernelValue
- type KernelValueArray
- func (v *KernelValueArray) Clone() KernelValue
- func (v *KernelValueArray) CompareForMapKey(other KernelValue) int
- func (v *KernelValueArray) Random(rg *rand.Rand)
- func (v *KernelValueArray) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
- func (v *KernelValueArray) Reset()
- func (v *KernelValueArray) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueArray) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueArray) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueArray) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueArray) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueArray) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueArrayBit
- func (v *KernelValueArrayBit) Clone() KernelValue
- func (v *KernelValueArrayBit) CompareForMapKey(other KernelValue) int
- func (v *KernelValueArrayBit) Random(rg *rand.Rand)
- func (v *KernelValueArrayBit) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
- func (v *KernelValueArrayBit) Reset()
- func (v *KernelValueArrayBit) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueArrayBit) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueArrayBit) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueArrayBit) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueArrayBit) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueArrayBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueBit
- func (v *KernelValueBit) Clone() KernelValue
- func (v *KernelValueBit) CompareForMapKey(other KernelValue) int
- func (v *KernelValueBit) Random(rg *rand.Rand)
- func (v *KernelValueBit) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueBit) Reset()
- func (v *KernelValueBit) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueBit) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueBit) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueBit) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueBit) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueBool
- func (v *KernelValueBool) Clone() KernelValue
- func (v *KernelValueBool) CompareForMapKey(other KernelValue) int
- func (v *KernelValueBool) Random(rg *rand.Rand)
- func (v *KernelValueBool) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueBool) Reset()
- func (v *KernelValueBool) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueBool) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueBool) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueBool) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueBool) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueBool) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueByte
- func (v *KernelValueByte) Clone() KernelValue
- func (v *KernelValueByte) CompareForMapKey(other KernelValue) int
- func (v *KernelValueByte) Random(rg *rand.Rand)
- func (v *KernelValueByte) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueByte) Reset()
- func (v *KernelValueByte) SetFromEditor(str string) error
- func (v *KernelValueByte) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueByte) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueByte) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueByte) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueByte) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueByte) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueDict
- func (v *KernelValueDict) Clone() KernelValue
- func (v *KernelValueDict) CompareForMapKey(other KernelValue) int
- func (v *KernelValueDict) Random(rg *rand.Rand)
- func (v *KernelValueDict) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
- func (v *KernelValueDict) Reset()
- func (v *KernelValueDict) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueDict) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueDict) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueDict) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueDict) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueDict) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueInt32
- func (v *KernelValueInt32) Clone() KernelValue
- func (v *KernelValueInt32) CompareForMapKey(other KernelValue) int
- func (v *KernelValueInt32) Random(rg *rand.Rand)
- func (v *KernelValueInt32) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueInt32) Reset()
- func (v *KernelValueInt32) SetFromEditor(str string) error
- func (v *KernelValueInt32) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueInt32) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueInt32) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueInt32) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueInt32) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueInt32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueInt64
- func (v *KernelValueInt64) Clone() KernelValue
- func (v *KernelValueInt64) CompareForMapKey(other KernelValue) int
- func (v *KernelValueInt64) Random(rg *rand.Rand)
- func (v *KernelValueInt64) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueInt64) Reset()
- func (v *KernelValueInt64) SetFromEditor(str string) error
- func (v *KernelValueInt64) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueInt64) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueInt64) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueInt64) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueInt64) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueInt64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValuePrimitive
- type KernelValueString
- func (v *KernelValueString) Clone() KernelValue
- func (v *KernelValueString) CompareForMapKey(other KernelValue) int
- func (v *KernelValueString) Random(rg *rand.Rand)
- func (v *KernelValueString) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueString) Reset()
- func (v *KernelValueString) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueString) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueString) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueString) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueString) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueString) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueStruct
- func (v *KernelValueStruct) Clone() KernelValue
- func (v *KernelValueStruct) CloneObject() KernelValueStruct
- func (v *KernelValueStruct) CompareForMapKey(other KernelValue) int
- func (v *KernelValueStruct) Random(rg *rand.Rand)
- func (v *KernelValueStruct) ReadFieldsTL2(block byte, currentR []byte, ctx *TL2Context) (err error)
- func (v *KernelValueStruct) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
- func (v *KernelValueStruct) Reset()
- func (v *KernelValueStruct) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueStruct) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueStruct) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueStruct) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueStruct) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueStruct) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueUint32
- func (v *KernelValueUint32) Clone() KernelValue
- func (v *KernelValueUint32) CompareForMapKey(other KernelValue) int
- func (v *KernelValueUint32) Random(rg *rand.Rand)
- func (v *KernelValueUint32) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueUint32) Reset()
- func (v *KernelValueUint32) SetFromEditor(str string) error
- func (v *KernelValueUint32) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueUint32) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueUint32) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueUint32) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueUint32) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueUint32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueUint64
- func (v *KernelValueUint64) Clone() KernelValue
- func (v *KernelValueUint64) CompareForMapKey(other KernelValue) int
- func (v *KernelValueUint64) Random(rg *rand.Rand)
- func (v *KernelValueUint64) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
- func (v *KernelValueUint64) Reset()
- func (v *KernelValueUint64) SetFromEditor(str string) error
- func (v *KernelValueUint64) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueUint64) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueUint64) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueUint64) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueUint64) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueUint64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type KernelValueUnion
- func (v *KernelValueUnion) Clone() KernelValue
- func (v *KernelValueUnion) CompareForMapKey(other KernelValue) int
- func (v *KernelValueUnion) Random(rg *rand.Rand)
- func (v *KernelValueUnion) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
- func (v *KernelValueUnion) Reset()
- func (v *KernelValueUnion) UIFixPath(side int, level int, model *UIModel) int
- func (v *KernelValueUnion) UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
- func (v *KernelValueUnion) UIStartEdit(level int, model *UIModel, createMode int)
- func (v *KernelValueUnion) UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
- func (v *KernelValueUnion) WriteJSON(w []byte, ctx *TL2Context) []byte
- func (v *KernelValueUnion) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
- type TL2Context
- type UIBlinkMsg
- type UIEditor
- type UIEditorPrimitive
- func (e *UIEditorPrimitive) OnBackspace(model *UIModel)
- func (e *UIEditorPrimitive) OnEnter(model *UIModel)
- func (e *UIEditorPrimitive) OnEscape(model *UIModel)
- func (e *UIEditorPrimitive) OnRune(msg string, model *UIModel)
- func (e *UIEditorPrimitive) OnTab(model *UIModel, side int)
- func (e *UIEditorPrimitive) SetValue(v KernelValuePrimitive)
- func (e *UIEditorPrimitive) UIWrite(sb *strings.Builder, model *UIModel)
- func (e *UIEditorPrimitive) Value() KernelValue
- type UIEditorString
- func (e *UIEditorString) FinishOK()
- func (e *UIEditorString) OnBackspace(model *UIModel)
- func (e *UIEditorString) OnEnter(model *UIModel)
- func (e *UIEditorString) OnEscape(model *UIModel)
- func (e *UIEditorString) OnRune(msg string, model *UIModel)
- func (e *UIEditorString) OnTab(model *UIModel, side int)
- func (e *UIEditorString) SetValue(v *KernelValueString)
- func (e *UIEditorString) UIWrite(sb *strings.Builder, model *UIModel)
- func (e *UIEditorString) Value() KernelValue
- type UIEditorUnion
- func (e *UIEditorUnion) FinishOK()
- func (e *UIEditorUnion) OnBackspace(model *UIModel)
- func (e *UIEditorUnion) OnEnter(model *UIModel)
- func (e *UIEditorUnion) OnEscape(model *UIModel)
- func (e *UIEditorUnion) OnRune(msg string, model *UIModel)
- func (e *UIEditorUnion) OnTab(model *UIModel, side int)
- func (e *UIEditorUnion) SetValue(v *KernelValueUnion)
- func (e *UIEditorUnion) UIWrite(sb *strings.Builder, model *UIModel)
- func (e *UIEditorUnion) Value() KernelValue
- type UIModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteBuilder ¶
type ByteBuilder struct {
// contains filtered or unexported fields
}
func (*ByteBuilder) Buf ¶
func (b *ByteBuilder) Buf() []byte
func (*ByteBuilder) FinishSize ¶
func (b *ByteBuilder) FinishSize(firstUsedByte int, lastUsedByte int, optimizeEmpty bool)
func (*ByteBuilder) Len ¶
func (b *ByteBuilder) Len() int
func (*ByteBuilder) Print ¶
func (b *ByteBuilder) Print() string
func (*ByteBuilder) PrintLegend ¶
func (b *ByteBuilder) PrintLegend() string
func (*ByteBuilder) ReserveSpaceForSize ¶
func (b *ByteBuilder) ReserveSpaceForSize() int
func (*ByteBuilder) SetCursorFinish ¶
func (b *ByteBuilder) SetCursorFinish()
func (*ByteBuilder) SetCursorStart ¶
func (b *ByteBuilder) SetCursorStart()
func (*ByteBuilder) WriteElementCount ¶
func (b *ByteBuilder) WriteElementCount(v int)
func (*ByteBuilder) WriteFieldmask ¶
func (b *ByteBuilder) WriteFieldmask()
func (*ByteBuilder) WriteString ¶
func (b *ByteBuilder) WriteString(v string)
func (*ByteBuilder) WriteVariantIndex ¶
func (b *ByteBuilder) WriteVariantIndex(v int)
type ByteColor ¶
type ByteColor byte
const ByteColorElementCount ByteColor = 2
const ByteColorFieldMask ByteColor = 4
const ByteColorNormal ByteColor = 0
const ByteColorObjectSize ByteColor = 1
const ByteColorStringData ByteColor = 7
const ByteColorStringSize ByteColor = 6
const ByteColorVariantIndex ByteColor = 3
type KernelValue ¶
type KernelValue interface {
Clone() KernelValue
Reset()
Random(rg *rand.Rand)
WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
WriteJSON(w []byte, ctx *TL2Context) []byte
UIWrite(sb *strings.Builder, onPath bool, level int, model *UIModel)
UIFixPath(side int, level int, model *UIModel) int // always called onPath
UIStartEdit(level int, model *UIModel, createMode int)
UIKey(level int, model *UIModel, insert bool, delete bool, up bool, down bool)
CompareForMapKey(other KernelValue) int
}
func CreateValue ¶
func CreateValue(ins pure.TypeInstance) KernelValue
type KernelValueArray ¶
type KernelValueArray struct {
// contains filtered or unexported fields
}
func (*KernelValueArray) Clone ¶
func (v *KernelValueArray) Clone() KernelValue
func (*KernelValueArray) CompareForMapKey ¶
func (v *KernelValueArray) CompareForMapKey(other KernelValue) int
func (*KernelValueArray) Random ¶
func (v *KernelValueArray) Random(rg *rand.Rand)
func (*KernelValueArray) ReadTL2 ¶
func (v *KernelValueArray) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
func (*KernelValueArray) Reset ¶
func (v *KernelValueArray) Reset()
func (*KernelValueArray) UIFixPath ¶
func (v *KernelValueArray) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueArray) UIStartEdit ¶
func (v *KernelValueArray) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueArray) WriteJSON ¶
func (v *KernelValueArray) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueArray) WriteTL2 ¶
func (v *KernelValueArray) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueArrayBit ¶
type KernelValueArrayBit struct {
// contains filtered or unexported fields
}
func (*KernelValueArrayBit) Clone ¶
func (v *KernelValueArrayBit) Clone() KernelValue
func (*KernelValueArrayBit) CompareForMapKey ¶
func (v *KernelValueArrayBit) CompareForMapKey(other KernelValue) int
func (*KernelValueArrayBit) Random ¶
func (v *KernelValueArrayBit) Random(rg *rand.Rand)
func (*KernelValueArrayBit) ReadTL2 ¶
func (v *KernelValueArrayBit) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
func (*KernelValueArrayBit) Reset ¶
func (v *KernelValueArrayBit) Reset()
func (*KernelValueArrayBit) UIFixPath ¶
func (v *KernelValueArrayBit) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueArrayBit) UIStartEdit ¶
func (v *KernelValueArrayBit) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueArrayBit) WriteJSON ¶
func (v *KernelValueArrayBit) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueArrayBit) WriteTL2 ¶
func (v *KernelValueArrayBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueBit ¶
type KernelValueBit struct {
}
func (*KernelValueBit) Clone ¶
func (v *KernelValueBit) Clone() KernelValue
func (*KernelValueBit) CompareForMapKey ¶
func (v *KernelValueBit) CompareForMapKey(other KernelValue) int
func (*KernelValueBit) Random ¶
func (v *KernelValueBit) Random(rg *rand.Rand)
func (*KernelValueBit) ReadTL2 ¶
func (v *KernelValueBit) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueBit) Reset ¶
func (v *KernelValueBit) Reset()
func (*KernelValueBit) UIFixPath ¶
func (v *KernelValueBit) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueBit) UIStartEdit ¶
func (v *KernelValueBit) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueBit) WriteJSON ¶
func (v *KernelValueBit) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueBit) WriteTL2 ¶
func (v *KernelValueBit) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueBool ¶
type KernelValueBool struct {
// contains filtered or unexported fields
}
func (*KernelValueBool) Clone ¶
func (v *KernelValueBool) Clone() KernelValue
func (*KernelValueBool) CompareForMapKey ¶
func (v *KernelValueBool) CompareForMapKey(other KernelValue) int
func (*KernelValueBool) Random ¶
func (v *KernelValueBool) Random(rg *rand.Rand)
func (*KernelValueBool) ReadTL2 ¶
func (v *KernelValueBool) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueBool) Reset ¶
func (v *KernelValueBool) Reset()
func (*KernelValueBool) UIFixPath ¶
func (v *KernelValueBool) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueBool) UIStartEdit ¶
func (v *KernelValueBool) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueBool) WriteJSON ¶
func (v *KernelValueBool) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueBool) WriteTL2 ¶
func (v *KernelValueBool) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueByte ¶
type KernelValueByte struct {
// contains filtered or unexported fields
}
func (*KernelValueByte) Clone ¶
func (v *KernelValueByte) Clone() KernelValue
func (*KernelValueByte) CompareForMapKey ¶
func (v *KernelValueByte) CompareForMapKey(other KernelValue) int
func (*KernelValueByte) Random ¶
func (v *KernelValueByte) Random(rg *rand.Rand)
func (*KernelValueByte) ReadTL2 ¶
func (v *KernelValueByte) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueByte) Reset ¶
func (v *KernelValueByte) Reset()
func (*KernelValueByte) SetFromEditor ¶
func (v *KernelValueByte) SetFromEditor(str string) error
func (*KernelValueByte) UIFixPath ¶
func (v *KernelValueByte) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueByte) UIStartEdit ¶
func (v *KernelValueByte) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueByte) WriteJSON ¶
func (v *KernelValueByte) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueByte) WriteTL2 ¶
func (v *KernelValueByte) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueDict ¶
type KernelValueDict struct {
// contains filtered or unexported fields
}
func (*KernelValueDict) Clone ¶
func (v *KernelValueDict) Clone() KernelValue
func (*KernelValueDict) CompareForMapKey ¶
func (v *KernelValueDict) CompareForMapKey(other KernelValue) int
func (*KernelValueDict) Random ¶
func (v *KernelValueDict) Random(rg *rand.Rand)
func (*KernelValueDict) ReadTL2 ¶
func (v *KernelValueDict) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
func (*KernelValueDict) Reset ¶
func (v *KernelValueDict) Reset()
func (*KernelValueDict) UIFixPath ¶
func (v *KernelValueDict) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueDict) UIStartEdit ¶
func (v *KernelValueDict) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueDict) WriteJSON ¶
func (v *KernelValueDict) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueDict) WriteTL2 ¶
func (v *KernelValueDict) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueInt32 ¶
type KernelValueInt32 struct {
// contains filtered or unexported fields
}
func (*KernelValueInt32) Clone ¶
func (v *KernelValueInt32) Clone() KernelValue
func (*KernelValueInt32) CompareForMapKey ¶
func (v *KernelValueInt32) CompareForMapKey(other KernelValue) int
func (*KernelValueInt32) Random ¶
func (v *KernelValueInt32) Random(rg *rand.Rand)
func (*KernelValueInt32) ReadTL2 ¶
func (v *KernelValueInt32) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueInt32) Reset ¶
func (v *KernelValueInt32) Reset()
func (*KernelValueInt32) SetFromEditor ¶
func (v *KernelValueInt32) SetFromEditor(str string) error
func (*KernelValueInt32) UIFixPath ¶
func (v *KernelValueInt32) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueInt32) UIStartEdit ¶
func (v *KernelValueInt32) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueInt32) WriteJSON ¶
func (v *KernelValueInt32) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueInt32) WriteTL2 ¶
func (v *KernelValueInt32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueInt64 ¶
type KernelValueInt64 struct {
// contains filtered or unexported fields
}
func (*KernelValueInt64) Clone ¶
func (v *KernelValueInt64) Clone() KernelValue
func (*KernelValueInt64) CompareForMapKey ¶
func (v *KernelValueInt64) CompareForMapKey(other KernelValue) int
func (*KernelValueInt64) Random ¶
func (v *KernelValueInt64) Random(rg *rand.Rand)
func (*KernelValueInt64) ReadTL2 ¶
func (v *KernelValueInt64) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueInt64) Reset ¶
func (v *KernelValueInt64) Reset()
func (*KernelValueInt64) SetFromEditor ¶
func (v *KernelValueInt64) SetFromEditor(str string) error
func (*KernelValueInt64) UIFixPath ¶
func (v *KernelValueInt64) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueInt64) UIStartEdit ¶
func (v *KernelValueInt64) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueInt64) WriteJSON ¶
func (v *KernelValueInt64) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueInt64) WriteTL2 ¶
func (v *KernelValueInt64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValuePrimitive ¶
type KernelValuePrimitive interface {
KernelValue
SetFromEditor(str string) error
}
type KernelValueString ¶
type KernelValueString struct {
// contains filtered or unexported fields
}
func (*KernelValueString) Clone ¶
func (v *KernelValueString) Clone() KernelValue
func (*KernelValueString) CompareForMapKey ¶
func (v *KernelValueString) CompareForMapKey(other KernelValue) int
func (*KernelValueString) Random ¶
func (v *KernelValueString) Random(rg *rand.Rand)
func (*KernelValueString) ReadTL2 ¶
func (v *KernelValueString) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueString) Reset ¶
func (v *KernelValueString) Reset()
func (*KernelValueString) UIFixPath ¶
func (v *KernelValueString) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueString) UIStartEdit ¶
func (v *KernelValueString) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueString) WriteJSON ¶
func (v *KernelValueString) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueString) WriteTL2 ¶
func (v *KernelValueString) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueStruct ¶
type KernelValueStruct struct {
// contains filtered or unexported fields
}
func CreateValueStruct ¶
func CreateValueStruct(ins *pure.TypeInstanceStruct) KernelValueStruct
func (*KernelValueStruct) Clone ¶
func (v *KernelValueStruct) Clone() KernelValue
func (*KernelValueStruct) CloneObject ¶
func (v *KernelValueStruct) CloneObject() KernelValueStruct
func (*KernelValueStruct) CompareForMapKey ¶
func (v *KernelValueStruct) CompareForMapKey(other KernelValue) int
func (*KernelValueStruct) Random ¶
func (v *KernelValueStruct) Random(rg *rand.Rand)
func (*KernelValueStruct) ReadFieldsTL2 ¶
func (v *KernelValueStruct) ReadFieldsTL2(block byte, currentR []byte, ctx *TL2Context) (err error)
func (*KernelValueStruct) ReadTL2 ¶
func (v *KernelValueStruct) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
func (*KernelValueStruct) Reset ¶
func (v *KernelValueStruct) Reset()
func (*KernelValueStruct) UIFixPath ¶
func (v *KernelValueStruct) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueStruct) UIStartEdit ¶
func (v *KernelValueStruct) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueStruct) WriteJSON ¶
func (v *KernelValueStruct) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueStruct) WriteTL2 ¶
func (v *KernelValueStruct) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueUint32 ¶
type KernelValueUint32 struct {
// contains filtered or unexported fields
}
func (*KernelValueUint32) Clone ¶
func (v *KernelValueUint32) Clone() KernelValue
func (*KernelValueUint32) CompareForMapKey ¶
func (v *KernelValueUint32) CompareForMapKey(other KernelValue) int
func (*KernelValueUint32) Random ¶
func (v *KernelValueUint32) Random(rg *rand.Rand)
func (*KernelValueUint32) ReadTL2 ¶
func (v *KernelValueUint32) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueUint32) Reset ¶
func (v *KernelValueUint32) Reset()
func (*KernelValueUint32) SetFromEditor ¶
func (v *KernelValueUint32) SetFromEditor(str string) error
func (*KernelValueUint32) UIFixPath ¶
func (v *KernelValueUint32) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueUint32) UIStartEdit ¶
func (v *KernelValueUint32) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueUint32) WriteJSON ¶
func (v *KernelValueUint32) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueUint32) WriteTL2 ¶
func (v *KernelValueUint32) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueUint64 ¶
type KernelValueUint64 struct {
// contains filtered or unexported fields
}
func (*KernelValueUint64) Clone ¶
func (v *KernelValueUint64) Clone() KernelValue
func (*KernelValueUint64) CompareForMapKey ¶
func (v *KernelValueUint64) CompareForMapKey(other KernelValue) int
func (*KernelValueUint64) Random ¶
func (v *KernelValueUint64) Random(rg *rand.Rand)
func (*KernelValueUint64) ReadTL2 ¶
func (v *KernelValueUint64) ReadTL2(r []byte, ctx *TL2Context) ([]byte, error)
func (*KernelValueUint64) Reset ¶
func (v *KernelValueUint64) Reset()
func (*KernelValueUint64) SetFromEditor ¶
func (v *KernelValueUint64) SetFromEditor(str string) error
func (*KernelValueUint64) UIFixPath ¶
func (v *KernelValueUint64) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueUint64) UIStartEdit ¶
func (v *KernelValueUint64) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueUint64) WriteJSON ¶
func (v *KernelValueUint64) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueUint64) WriteTL2 ¶
func (v *KernelValueUint64) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type KernelValueUnion ¶
type KernelValueUnion struct {
// contains filtered or unexported fields
}
func (*KernelValueUnion) Clone ¶
func (v *KernelValueUnion) Clone() KernelValue
func (*KernelValueUnion) CompareForMapKey ¶
func (v *KernelValueUnion) CompareForMapKey(other KernelValue) int
func (*KernelValueUnion) Random ¶
func (v *KernelValueUnion) Random(rg *rand.Rand)
func (*KernelValueUnion) ReadTL2 ¶
func (v *KernelValueUnion) ReadTL2(r []byte, ctx *TL2Context) (_ []byte, err error)
func (*KernelValueUnion) Reset ¶
func (v *KernelValueUnion) Reset()
func (*KernelValueUnion) UIFixPath ¶
func (v *KernelValueUnion) UIFixPath(side int, level int, model *UIModel) int
func (*KernelValueUnion) UIStartEdit ¶
func (v *KernelValueUnion) UIStartEdit(level int, model *UIModel, createMode int)
func (*KernelValueUnion) WriteJSON ¶
func (v *KernelValueUnion) WriteJSON(w []byte, ctx *TL2Context) []byte
func (*KernelValueUnion) WriteTL2 ¶
func (v *KernelValueUnion) WriteTL2(w *ByteBuilder, optimizeEmpty bool, onPath bool, level int, model *UIModel)
type UIBlinkMsg ¶
type UIBlinkMsg struct {
On bool
}
type UIEditorPrimitive ¶
type UIEditorPrimitive struct {
// contains filtered or unexported fields
}
func (*UIEditorPrimitive) OnBackspace ¶
func (e *UIEditorPrimitive) OnBackspace(model *UIModel)
func (*UIEditorPrimitive) OnEnter ¶
func (e *UIEditorPrimitive) OnEnter(model *UIModel)
func (*UIEditorPrimitive) OnEscape ¶
func (e *UIEditorPrimitive) OnEscape(model *UIModel)
func (*UIEditorPrimitive) OnRune ¶
func (e *UIEditorPrimitive) OnRune(msg string, model *UIModel)
func (*UIEditorPrimitive) OnTab ¶
func (e *UIEditorPrimitive) OnTab(model *UIModel, side int)
func (*UIEditorPrimitive) SetValue ¶
func (e *UIEditorPrimitive) SetValue(v KernelValuePrimitive)
func (*UIEditorPrimitive) UIWrite ¶
func (e *UIEditorPrimitive) UIWrite(sb *strings.Builder, model *UIModel)
func (*UIEditorPrimitive) Value ¶
func (e *UIEditorPrimitive) Value() KernelValue
type UIEditorString ¶
type UIEditorString struct {
// contains filtered or unexported fields
}
func (*UIEditorString) FinishOK ¶
func (e *UIEditorString) FinishOK()
func (*UIEditorString) OnBackspace ¶
func (e *UIEditorString) OnBackspace(model *UIModel)
func (*UIEditorString) OnEnter ¶
func (e *UIEditorString) OnEnter(model *UIModel)
func (*UIEditorString) OnEscape ¶
func (e *UIEditorString) OnEscape(model *UIModel)
func (*UIEditorString) OnRune ¶
func (e *UIEditorString) OnRune(msg string, model *UIModel)
func (*UIEditorString) OnTab ¶
func (e *UIEditorString) OnTab(model *UIModel, side int)
func (*UIEditorString) SetValue ¶
func (e *UIEditorString) SetValue(v *KernelValueString)
func (*UIEditorString) UIWrite ¶
func (e *UIEditorString) UIWrite(sb *strings.Builder, model *UIModel)
func (*UIEditorString) Value ¶
func (e *UIEditorString) Value() KernelValue
type UIEditorUnion ¶
type UIEditorUnion struct {
// contains filtered or unexported fields
}
func (*UIEditorUnion) FinishOK ¶
func (e *UIEditorUnion) FinishOK()
func (*UIEditorUnion) OnBackspace ¶
func (e *UIEditorUnion) OnBackspace(model *UIModel)
func (*UIEditorUnion) OnEnter ¶
func (e *UIEditorUnion) OnEnter(model *UIModel)
func (*UIEditorUnion) OnEscape ¶
func (e *UIEditorUnion) OnEscape(model *UIModel)
func (*UIEditorUnion) OnRune ¶
func (e *UIEditorUnion) OnRune(msg string, model *UIModel)
func (*UIEditorUnion) OnTab ¶
func (e *UIEditorUnion) OnTab(model *UIModel, side int)
func (*UIEditorUnion) SetValue ¶
func (e *UIEditorUnion) SetValue(v *KernelValueUnion)
func (*UIEditorUnion) UIWrite ¶
func (e *UIEditorUnion) UIWrite(sb *strings.Builder, model *UIModel)
func (*UIEditorUnion) Value ¶
func (e *UIEditorUnion) Value() KernelValue
type UIModel ¶
type UIModel struct {
Fun KernelValueStruct
Path []int // selected field on every hierarchy level, 0 means union constructor
Blink UIBlinkMsg
CurrentEditor UIEditor
LastError error
ShowLegend bool
EditorUnion UIEditorUnion
EditorString UIEditorString
EditorPrimitive UIEditorPrimitive
Width int
Height int
}
func (*UIModel) SetCurrentEditor ¶
Click to show internal directories.
Click to hide internal directories.