Documentation
¶
Overview ¶
Package swarmwire is the swarm area's table wire, generated by the schema compiler from schemas/swarm/swarm.schema: the exit record, the worker description, the harness config, the fence config, the declared model and the member carry, each a variable table. Every other .go file here is generated: edit the .schema and run go generate ./pkg/swarmwire, never the output. pkg/schemaread reads it strictly: binary wire, padded standard base64 of the wire or the schema JSON text, each refused by name when damaged.
Index ¶
- Constants
- Variables
- func Announce(buffer []byte) int64
- func AnnounceMeasure() int64
- func AnnounceRead(v *TableVocabulary, data []byte, report *TableReport) bool
- func DeclaredModelCookFrom(value *DeclaredModel, buffer []byte, order TableByteOrder, ...) bool
- func DeclaredModelCookMeasure(value *DeclaredModel, context ...TableWriteContext) int64
- func DeclaredModelCookMeasureReason(value *DeclaredModel, context ...TableWriteContext) (int64, error)
- func DeclaredModelFromJson(builder *DeclaredModelBuilder, text []byte, report *TableReport) bool
- func DeclaredModelLoadBody(r *TableReader, value *DeclaredModel) bool
- func DeclaredModelLoadBodyRetain(r *TableRetainReader, value *DeclaredModel) bool
- func DeclaredModelLoadBuilder(b *DeclaredModelBuilder, wire []byte, report *TableReport) bool
- func DeclaredModelLoadMeasure(wire []byte) int64
- func DeclaredModelLoadMeasureReason(wire []byte) (int64, error)
- func DeclaredModelLoadMessageBody(r *TableMessageReader, value *DeclaredModel) bool
- func DeclaredModelLoadMessageBodyRetain(r *TableRetainMessageReader, value *DeclaredModel) bool
- func DeclaredModelMeasure(value *DeclaredModel, context ...TableWriteContext) int64
- func DeclaredModelMeasureBody(value *DeclaredModel, ids *TableIds) int64
- func DeclaredModelMeasureBodyRetain(value *DeclaredModel, ids *TableRetainIds) int64
- func DeclaredModelMeasureReason(value *DeclaredModel, context ...TableWriteContext) (int64, error)
- func DeclaredModelMeasureRetain(value *DeclaredModel, retain *TableRetain, allocator ...TableAllocator) int64
- func DeclaredModelOpen(cook *DeclaredModelCook, base unsafe.Pointer, length int64) bool
- func DeclaredModelReset(value *DeclaredModel)
- func DeclaredModelSave(value *DeclaredModel, buffer []byte, context ...TableWriteContext) int64
- func DeclaredModelSaveBody(w *TableWriter, value *DeclaredModel) bool
- func DeclaredModelSaveBodyFields(w *TableWriter, value *DeclaredModel) bool
- func DeclaredModelSaveBodyFieldsRetain(w *TableRetainWriter, value *DeclaredModel) bool
- func DeclaredModelSaveBodyRetain(w *TableRetainWriter, value *DeclaredModel) bool
- func DeclaredModelSaveMessageBody(w *TableMessageWriter, value *DeclaredModel) bool
- func DeclaredModelSaveRetain(value *DeclaredModel, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func DeclaredModelSaveText(value *DeclaredModel, context ...TableWriteContext) (string, error)
- func DeclaredModelToJson(value *DeclaredModel, buffer []byte, allocator ...TableAllocator) int64
- func DeclaredModelToJsonMeasure(value *DeclaredModel, allocator ...TableAllocator) int64
- func EntryCookFrom(value *Entry, buffer []byte, order TableByteOrder, ...) bool
- func EntryCookMeasure(value *Entry, context ...TableWriteContext) int64
- func EntryCookMeasureReason(value *Entry, context ...TableWriteContext) (int64, error)
- func EntryFromJson(builder *EntryBuilder, text []byte, report *TableReport) bool
- func EntryLoadBody(r *TableReader, value *Entry) bool
- func EntryLoadBodyRetain(r *TableRetainReader, value *Entry) bool
- func EntryLoadBuilder(b *EntryBuilder, wire []byte, report *TableReport) bool
- func EntryLoadMeasure(wire []byte) int64
- func EntryLoadMeasureReason(wire []byte) (int64, error)
- func EntryLoadMessageBody(r *TableMessageReader, value *Entry) bool
- func EntryLoadMessageBodyRetain(r *TableRetainMessageReader, value *Entry) bool
- func EntryMeasure(value *Entry, context ...TableWriteContext) int64
- func EntryMeasureBody(value *Entry, ids *TableIds) int64
- func EntryMeasureBodyRetain(value *Entry, ids *TableRetainIds) int64
- func EntryMeasureReason(value *Entry, context ...TableWriteContext) (int64, error)
- func EntryMeasureRetain(value *Entry, retain *TableRetain, allocator ...TableAllocator) int64
- func EntryOpen(cook *EntryCook, base unsafe.Pointer, length int64) bool
- func EntryReset(value *Entry)
- func EntrySave(value *Entry, buffer []byte, context ...TableWriteContext) int64
- func EntrySaveBody(w *TableWriter, value *Entry) bool
- func EntrySaveBodyFields(w *TableWriter, value *Entry) bool
- func EntrySaveBodyFieldsRetain(w *TableRetainWriter, value *Entry) bool
- func EntrySaveBodyRetain(w *TableRetainWriter, value *Entry) bool
- func EntrySaveMessageBody(w *TableMessageWriter, value *Entry) bool
- func EntrySaveRetain(value *Entry, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func EntrySaveText(value *Entry, context ...TableWriteContext) (string, error)
- func EntryToJson(value *Entry, buffer []byte, allocator ...TableAllocator) int64
- func EntryToJsonMeasure(value *Entry, allocator ...TableAllocator) int64
- func ExitRecordCookFrom(value *ExitRecord, buffer []byte, order TableByteOrder, ...) bool
- func ExitRecordCookMeasure(value *ExitRecord, context ...TableWriteContext) int64
- func ExitRecordCookMeasureReason(value *ExitRecord, context ...TableWriteContext) (int64, error)
- func ExitRecordFromJson(builder *ExitRecordBuilder, text []byte, report *TableReport) bool
- func ExitRecordLoadBody(r *TableReader, value *ExitRecord) bool
- func ExitRecordLoadBodyRetain(r *TableRetainReader, value *ExitRecord) bool
- func ExitRecordLoadBuilder(b *ExitRecordBuilder, wire []byte, report *TableReport) bool
- func ExitRecordLoadMeasure(wire []byte) int64
- func ExitRecordLoadMeasureReason(wire []byte) (int64, error)
- func ExitRecordLoadMessageBody(r *TableMessageReader, value *ExitRecord) bool
- func ExitRecordLoadMessageBodyRetain(r *TableRetainMessageReader, value *ExitRecord) bool
- func ExitRecordMeasure(value *ExitRecord, context ...TableWriteContext) int64
- func ExitRecordMeasureBody(value *ExitRecord, ids *TableIds) int64
- func ExitRecordMeasureBodyRetain(value *ExitRecord, ids *TableRetainIds) int64
- func ExitRecordMeasureReason(value *ExitRecord, context ...TableWriteContext) (int64, error)
- func ExitRecordMeasureRetain(value *ExitRecord, retain *TableRetain, allocator ...TableAllocator) int64
- func ExitRecordOpen(cook *ExitRecordCook, base unsafe.Pointer, length int64) bool
- func ExitRecordReset(value *ExitRecord)
- func ExitRecordSave(value *ExitRecord, buffer []byte, context ...TableWriteContext) int64
- func ExitRecordSaveBody(w *TableWriter, value *ExitRecord) bool
- func ExitRecordSaveBodyFields(w *TableWriter, value *ExitRecord) bool
- func ExitRecordSaveBodyFieldsRetain(w *TableRetainWriter, value *ExitRecord) bool
- func ExitRecordSaveBodyRetain(w *TableRetainWriter, value *ExitRecord) bool
- func ExitRecordSaveMessageBody(w *TableMessageWriter, value *ExitRecord) bool
- func ExitRecordSaveRetain(value *ExitRecord, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func ExitRecordSaveText(value *ExitRecord, context ...TableWriteContext) (string, error)
- func ExitRecordToJson(value *ExitRecord, buffer []byte, allocator ...TableAllocator) int64
- func ExitRecordToJsonMeasure(value *ExitRecord, allocator ...TableAllocator) int64
- func FenceConfigCookFrom(value *FenceConfig, buffer []byte, order TableByteOrder, ...) bool
- func FenceConfigCookMeasure(value *FenceConfig, context ...TableWriteContext) int64
- func FenceConfigCookMeasureReason(value *FenceConfig, context ...TableWriteContext) (int64, error)
- func FenceConfigFromJson(builder *FenceConfigBuilder, text []byte, report *TableReport) bool
- func FenceConfigLoadBody(r *TableReader, value *FenceConfig) bool
- func FenceConfigLoadBodyRetain(r *TableRetainReader, value *FenceConfig) bool
- func FenceConfigLoadBuilder(b *FenceConfigBuilder, wire []byte, report *TableReport) bool
- func FenceConfigLoadMeasure(wire []byte) int64
- func FenceConfigLoadMeasureReason(wire []byte) (int64, error)
- func FenceConfigLoadMessageBody(r *TableMessageReader, value *FenceConfig) bool
- func FenceConfigLoadMessageBodyRetain(r *TableRetainMessageReader, value *FenceConfig) bool
- func FenceConfigMeasure(value *FenceConfig, context ...TableWriteContext) int64
- func FenceConfigMeasureBody(value *FenceConfig, ids *TableIds) int64
- func FenceConfigMeasureBodyRetain(value *FenceConfig, ids *TableRetainIds) int64
- func FenceConfigMeasureReason(value *FenceConfig, context ...TableWriteContext) (int64, error)
- func FenceConfigMeasureRetain(value *FenceConfig, retain *TableRetain, allocator ...TableAllocator) int64
- func FenceConfigOpen(cook *FenceConfigCook, base unsafe.Pointer, length int64) bool
- func FenceConfigReadsEach(holder *TableList[EntryRow], visit func(*EntryRow) bool, arena ...*TableArena) bool
- func FenceConfigReadsErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
- func FenceConfigReset(value *FenceConfig)
- func FenceConfigRulesEach(holder *TableList[FenceRuleRow], visit func(*FenceRuleRow) bool, ...) bool
- func FenceConfigRulesErase(arena *TableArena, holder *TableList[FenceRuleRow], element *FenceRuleRow) bool
- func FenceConfigSave(value *FenceConfig, buffer []byte, context ...TableWriteContext) int64
- func FenceConfigSaveBody(w *TableWriter, value *FenceConfig) bool
- func FenceConfigSaveBodyFields(w *TableWriter, value *FenceConfig) bool
- func FenceConfigSaveBodyFieldsRetain(w *TableRetainWriter, value *FenceConfig) bool
- func FenceConfigSaveBodyRetain(w *TableRetainWriter, value *FenceConfig) bool
- func FenceConfigSaveMessageBody(w *TableMessageWriter, value *FenceConfig) bool
- func FenceConfigSaveRetain(value *FenceConfig, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func FenceConfigSaveText(value *FenceConfig, context ...TableWriteContext) (string, error)
- func FenceConfigToJson(value *FenceConfig, buffer []byte, allocator ...TableAllocator) int64
- func FenceConfigToJsonMeasure(value *FenceConfig, allocator ...TableAllocator) int64
- func FenceRuleCookFrom(value *FenceRule, buffer []byte, order TableByteOrder, ...) bool
- func FenceRuleCookMeasure(value *FenceRule, context ...TableWriteContext) int64
- func FenceRuleCookMeasureReason(value *FenceRule, context ...TableWriteContext) (int64, error)
- func FenceRuleFromJson(builder *FenceRuleBuilder, text []byte, report *TableReport) bool
- func FenceRuleLoadBody(r *TableReader, value *FenceRule) bool
- func FenceRuleLoadBodyRetain(r *TableRetainReader, value *FenceRule) bool
- func FenceRuleLoadBuilder(b *FenceRuleBuilder, wire []byte, report *TableReport) bool
- func FenceRuleLoadMeasure(wire []byte) int64
- func FenceRuleLoadMeasureReason(wire []byte) (int64, error)
- func FenceRuleLoadMessageBody(r *TableMessageReader, value *FenceRule) bool
- func FenceRuleLoadMessageBodyRetain(r *TableRetainMessageReader, value *FenceRule) bool
- func FenceRuleMeasure(value *FenceRule, context ...TableWriteContext) int64
- func FenceRuleMeasureBody(value *FenceRule, ids *TableIds) int64
- func FenceRuleMeasureBodyRetain(value *FenceRule, ids *TableRetainIds) int64
- func FenceRuleMeasureReason(value *FenceRule, context ...TableWriteContext) (int64, error)
- func FenceRuleMeasureRetain(value *FenceRule, retain *TableRetain, allocator ...TableAllocator) int64
- func FenceRuleOpen(cook *FenceRuleCook, base unsafe.Pointer, length int64) bool
- func FenceRuleReset(value *FenceRule)
- func FenceRuleSave(value *FenceRule, buffer []byte, context ...TableWriteContext) int64
- func FenceRuleSaveBody(w *TableWriter, value *FenceRule) bool
- func FenceRuleSaveBodyFields(w *TableWriter, value *FenceRule) bool
- func FenceRuleSaveBodyFieldsRetain(w *TableRetainWriter, value *FenceRule) bool
- func FenceRuleSaveBodyRetain(w *TableRetainWriter, value *FenceRule) bool
- func FenceRuleSaveMessageBody(w *TableMessageWriter, value *FenceRule) bool
- func FenceRuleSaveRetain(value *FenceRule, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func FenceRuleSaveText(value *FenceRule, context ...TableWriteContext) (string, error)
- func FenceRuleToJson(value *FenceRule, buffer []byte, allocator ...TableAllocator) int64
- func FenceRuleToJsonMeasure(value *FenceRule, allocator ...TableAllocator) int64
- func HarnessConfigRecordCookFrom(value *HarnessConfigRecord, buffer []byte, order TableByteOrder, ...) bool
- func HarnessConfigRecordCookMeasure(value *HarnessConfigRecord, context ...TableWriteContext) int64
- func HarnessConfigRecordCookMeasureReason(value *HarnessConfigRecord, context ...TableWriteContext) (int64, error)
- func HarnessConfigRecordFromJson(builder *HarnessConfigRecordBuilder, text []byte, report *TableReport) bool
- func HarnessConfigRecordLoadBody(r *TableReader, value *HarnessConfigRecord) bool
- func HarnessConfigRecordLoadBodyRetain(r *TableRetainReader, value *HarnessConfigRecord) bool
- func HarnessConfigRecordLoadBuilder(b *HarnessConfigRecordBuilder, wire []byte, report *TableReport) bool
- func HarnessConfigRecordLoadMeasure(wire []byte) int64
- func HarnessConfigRecordLoadMeasureReason(wire []byte) (int64, error)
- func HarnessConfigRecordLoadMessageBody(r *TableMessageReader, value *HarnessConfigRecord) bool
- func HarnessConfigRecordLoadMessageBodyRetain(r *TableRetainMessageReader, value *HarnessConfigRecord) bool
- func HarnessConfigRecordMeasure(value *HarnessConfigRecord, context ...TableWriteContext) int64
- func HarnessConfigRecordMeasureBody(value *HarnessConfigRecord, ids *TableIds) int64
- func HarnessConfigRecordMeasureBodyRetain(value *HarnessConfigRecord, ids *TableRetainIds) int64
- func HarnessConfigRecordMeasureReason(value *HarnessConfigRecord, context ...TableWriteContext) (int64, error)
- func HarnessConfigRecordMeasureRetain(value *HarnessConfigRecord, retain *TableRetain, allocator ...TableAllocator) int64
- func HarnessConfigRecordOpen(cook *HarnessConfigRecordCook, base unsafe.Pointer, length int64) bool
- func HarnessConfigRecordReset(value *HarnessConfigRecord)
- func HarnessConfigRecordSave(value *HarnessConfigRecord, buffer []byte, context ...TableWriteContext) int64
- func HarnessConfigRecordSaveBody(w *TableWriter, value *HarnessConfigRecord) bool
- func HarnessConfigRecordSaveBodyFields(w *TableWriter, value *HarnessConfigRecord) bool
- func HarnessConfigRecordSaveBodyFieldsRetain(w *TableRetainWriter, value *HarnessConfigRecord) bool
- func HarnessConfigRecordSaveBodyRetain(w *TableRetainWriter, value *HarnessConfigRecord) bool
- func HarnessConfigRecordSaveMessageBody(w *TableMessageWriter, value *HarnessConfigRecord) bool
- func HarnessConfigRecordSaveRetain(value *HarnessConfigRecord, retain *TableRetain, buffer []byte, ...) int64
- func HarnessConfigRecordSaveText(value *HarnessConfigRecord, context ...TableWriteContext) (string, error)
- func HarnessConfigRecordToJson(value *HarnessConfigRecord, buffer []byte, allocator ...TableAllocator) int64
- func HarnessConfigRecordToJsonMeasure(value *HarnessConfigRecord, allocator ...TableAllocator) int64
- func MemberCarryCookFrom(value *MemberCarry, buffer []byte, order TableByteOrder, ...) bool
- func MemberCarryCookMeasure(value *MemberCarry, context ...TableWriteContext) int64
- func MemberCarryCookMeasureReason(value *MemberCarry, context ...TableWriteContext) (int64, error)
- func MemberCarryFromJson(builder *MemberCarryBuilder, text []byte, report *TableReport) bool
- func MemberCarryLoadBody(r *TableReader, value *MemberCarry) bool
- func MemberCarryLoadBodyRetain(r *TableRetainReader, value *MemberCarry) bool
- func MemberCarryLoadBuilder(b *MemberCarryBuilder, wire []byte, report *TableReport) bool
- func MemberCarryLoadMeasure(wire []byte) int64
- func MemberCarryLoadMeasureReason(wire []byte) (int64, error)
- func MemberCarryLoadMessageBody(r *TableMessageReader, value *MemberCarry) bool
- func MemberCarryLoadMessageBodyRetain(r *TableRetainMessageReader, value *MemberCarry) bool
- func MemberCarryMeasure(value *MemberCarry, context ...TableWriteContext) int64
- func MemberCarryMeasureBody(value *MemberCarry, ids *TableIds) int64
- func MemberCarryMeasureBodyRetain(value *MemberCarry, ids *TableRetainIds) int64
- func MemberCarryMeasureReason(value *MemberCarry, context ...TableWriteContext) (int64, error)
- func MemberCarryMeasureRetain(value *MemberCarry, retain *TableRetain, allocator ...TableAllocator) int64
- func MemberCarryOpen(cook *MemberCarryCook, base unsafe.Pointer, length int64) bool
- func MemberCarryReset(value *MemberCarry)
- func MemberCarrySave(value *MemberCarry, buffer []byte, context ...TableWriteContext) int64
- func MemberCarrySaveBody(w *TableWriter, value *MemberCarry) bool
- func MemberCarrySaveBodyFields(w *TableWriter, value *MemberCarry) bool
- func MemberCarrySaveBodyFieldsRetain(w *TableRetainWriter, value *MemberCarry) bool
- func MemberCarrySaveBodyRetain(w *TableRetainWriter, value *MemberCarry) bool
- func MemberCarrySaveMessageBody(w *TableMessageWriter, value *MemberCarry) bool
- func MemberCarrySaveRetain(value *MemberCarry, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func MemberCarrySaveText(value *MemberCarry, context ...TableWriteContext) (string, error)
- func MemberCarryToJson(value *MemberCarry, buffer []byte, allocator ...TableAllocator) int64
- func MemberCarryToJsonMeasure(value *MemberCarry, allocator ...TableAllocator) int64
- func TableBytesEmplace(worker *TableWorker, slot *TableRef, length int64) []byte
- func TableStringEmplace(worker *TableWorker, slot *TableRef, text []byte) []byte
- func WorkerRecordCookFrom(value *WorkerRecord, buffer []byte, order TableByteOrder, ...) bool
- func WorkerRecordCookMeasure(value *WorkerRecord, context ...TableWriteContext) int64
- func WorkerRecordCookMeasureReason(value *WorkerRecord, context ...TableWriteContext) (int64, error)
- func WorkerRecordFromJson(builder *WorkerRecordBuilder, text []byte, report *TableReport) bool
- func WorkerRecordHarnessArgsEach(holder *TableList[EntryRow], visit func(*EntryRow) bool, arena ...*TableArena) bool
- func WorkerRecordHarnessArgsErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
- func WorkerRecordInputLimitPhrasesEach(holder *TableList[EntryRow], visit func(*EntryRow) bool, arena ...*TableArena) bool
- func WorkerRecordInputLimitPhrasesErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
- func WorkerRecordLoadBody(r *TableReader, value *WorkerRecord) bool
- func WorkerRecordLoadBodyRetain(r *TableRetainReader, value *WorkerRecord) bool
- func WorkerRecordLoadBuilder(b *WorkerRecordBuilder, wire []byte, report *TableReport) bool
- func WorkerRecordLoadMeasure(wire []byte) int64
- func WorkerRecordLoadMeasureReason(wire []byte) (int64, error)
- func WorkerRecordLoadMessageBody(r *TableMessageReader, value *WorkerRecord) bool
- func WorkerRecordLoadMessageBodyRetain(r *TableRetainMessageReader, value *WorkerRecord) bool
- func WorkerRecordMeasure(value *WorkerRecord, context ...TableWriteContext) int64
- func WorkerRecordMeasureBody(value *WorkerRecord, ids *TableIds) int64
- func WorkerRecordMeasureBodyRetain(value *WorkerRecord, ids *TableRetainIds) int64
- func WorkerRecordMeasureReason(value *WorkerRecord, context ...TableWriteContext) (int64, error)
- func WorkerRecordMeasureRetain(value *WorkerRecord, retain *TableRetain, allocator ...TableAllocator) int64
- func WorkerRecordOpen(cook *WorkerRecordCook, base unsafe.Pointer, length int64) bool
- func WorkerRecordReadRootsEach(holder *TableList[EntryRow], visit func(*EntryRow) bool, arena ...*TableArena) bool
- func WorkerRecordReadRootsErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
- func WorkerRecordReset(value *WorkerRecord)
- func WorkerRecordSave(value *WorkerRecord, buffer []byte, context ...TableWriteContext) int64
- func WorkerRecordSaveBody(w *TableWriter, value *WorkerRecord) bool
- func WorkerRecordSaveBodyFields(w *TableWriter, value *WorkerRecord) bool
- func WorkerRecordSaveBodyFieldsRetain(w *TableRetainWriter, value *WorkerRecord) bool
- func WorkerRecordSaveBodyRetain(w *TableRetainWriter, value *WorkerRecord) bool
- func WorkerRecordSaveMessageBody(w *TableMessageWriter, value *WorkerRecord) bool
- func WorkerRecordSaveRetain(value *WorkerRecord, retain *TableRetain, buffer []byte, report *TableReport, ...) int64
- func WorkerRecordSaveText(value *WorkerRecord, context ...TableWriteContext) (string, error)
- func WorkerRecordToJson(value *WorkerRecord, buffer []byte, allocator ...TableAllocator) int64
- func WorkerRecordToJsonMeasure(value *WorkerRecord, allocator ...TableAllocator) int64
- type DeclaredModel
- func DeclaredModelLoad(region, wire []byte, report *TableReport) *DeclaredModel
- func DeclaredModelLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *DeclaredModel
- func DeclaredModelLoadText(text string, report *TableReport) (*DeclaredModel, error)
- func DeclaredModelReadStrict(wire []byte) (*DeclaredModel, error)
- type DeclaredModelBuilder
- func (b *DeclaredModelBuilder) AsConst() *DeclaredModel
- func (b *DeclaredModelBuilder) GetRoot() *DeclaredModel
- func (b *DeclaredModelBuilder) Init(allocator ...TableAllocator) bool
- func (b *DeclaredModelBuilder) Lock() bool
- func (b *DeclaredModelBuilder) PackMeasure() int64
- func (b *DeclaredModelBuilder) PackMeasureReason() (int64, error)
- func (b *DeclaredModelBuilder) Region() []byte
- func (b *DeclaredModelBuilder) Shutdown()
- type DeclaredModelCook
- func (cook *DeclaredModelCook) Open(base unsafe.Pointer, length int64) error
- func (c DeclaredModelCook) RegionAlignment() int64
- func (c DeclaredModelCook) Root() *DeclaredModelRow
- func (c DeclaredModelCook) RootAlign() int64
- func (c DeclaredModelCook) RootSize() int64
- func (c DeclaredModelCook) Type() *TableCookInfo
- type DeclaredModelRow
- type Entry
- type EntryBuilder
- func (b *EntryBuilder) AsConst() *Entry
- func (b *EntryBuilder) GetRoot() *Entry
- func (b *EntryBuilder) Init(allocator ...TableAllocator) bool
- func (b *EntryBuilder) Lock() bool
- func (b *EntryBuilder) PackMeasure() int64
- func (b *EntryBuilder) PackMeasureReason() (int64, error)
- func (b *EntryBuilder) Region() []byte
- func (b *EntryBuilder) Shutdown()
- type EntryCook
- type EntryRow
- func EntryAt(slot *int64, arena ...*TableArena) *EntryRow
- func FenceConfigReadsAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
- func WorkerRecordHarnessArgsAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
- func WorkerRecordInputLimitPhrasesAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
- func WorkerRecordReadRootsAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
- type ExitRecord
- func ExitRecordLoad(region, wire []byte, report *TableReport) *ExitRecord
- func ExitRecordLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *ExitRecord
- func ExitRecordLoadText(text string, report *TableReport) (*ExitRecord, error)
- func ExitRecordReadStrict(wire []byte) (*ExitRecord, error)
- type ExitRecordBuilder
- func (b *ExitRecordBuilder) AsConst() *ExitRecord
- func (b *ExitRecordBuilder) GetRoot() *ExitRecord
- func (b *ExitRecordBuilder) Init(allocator ...TableAllocator) bool
- func (b *ExitRecordBuilder) Lock() bool
- func (b *ExitRecordBuilder) PackMeasure() int64
- func (b *ExitRecordBuilder) PackMeasureReason() (int64, error)
- func (b *ExitRecordBuilder) Region() []byte
- func (b *ExitRecordBuilder) Shutdown()
- type ExitRecordCook
- type ExitRecordRow
- type FenceConfig
- func FenceConfigLoad(region, wire []byte, report *TableReport) *FenceConfig
- func FenceConfigLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *FenceConfig
- func FenceConfigLoadText(text string, report *TableReport) (*FenceConfig, error)
- func FenceConfigReadStrict(wire []byte) (*FenceConfig, error)
- type FenceConfigBuilder
- func (b *FenceConfigBuilder) AsConst() *FenceConfig
- func (b *FenceConfigBuilder) GetRoot() *FenceConfig
- func (b *FenceConfigBuilder) Init(allocator ...TableAllocator) bool
- func (b *FenceConfigBuilder) Lock() bool
- func (b *FenceConfigBuilder) PackMeasure() int64
- func (b *FenceConfigBuilder) PackMeasureReason() (int64, error)
- func (b *FenceConfigBuilder) Region() []byte
- func (b *FenceConfigBuilder) Shutdown()
- type FenceConfigCook
- func (cook *FenceConfigCook) Open(base unsafe.Pointer, length int64) error
- func (c FenceConfigCook) RegionAlignment() int64
- func (c FenceConfigCook) Root() *FenceConfigRow
- func (c FenceConfigCook) RootAlign() int64
- func (c FenceConfigCook) RootSize() int64
- func (c FenceConfigCook) Type() *TableCookInfo
- type FenceConfigRow
- type FenceRule
- func FenceRuleLoad(region, wire []byte, report *TableReport) *FenceRule
- func FenceRuleLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *FenceRule
- func FenceRuleLoadText(text string, report *TableReport) (*FenceRule, error)
- func FenceRuleReadStrict(wire []byte) (*FenceRule, error)
- type FenceRuleBuilder
- func (b *FenceRuleBuilder) AsConst() *FenceRule
- func (b *FenceRuleBuilder) GetRoot() *FenceRule
- func (b *FenceRuleBuilder) Init(allocator ...TableAllocator) bool
- func (b *FenceRuleBuilder) Lock() bool
- func (b *FenceRuleBuilder) PackMeasure() int64
- func (b *FenceRuleBuilder) PackMeasureReason() (int64, error)
- func (b *FenceRuleBuilder) Region() []byte
- func (b *FenceRuleBuilder) Shutdown()
- type FenceRuleCook
- type FenceRuleRow
- type HarnessConfigRecord
- func HarnessConfigRecordLoad(region, wire []byte, report *TableReport) *HarnessConfigRecord
- func HarnessConfigRecordLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *HarnessConfigRecord
- func HarnessConfigRecordLoadText(text string, report *TableReport) (*HarnessConfigRecord, error)
- func HarnessConfigRecordReadStrict(wire []byte) (*HarnessConfigRecord, error)
- type HarnessConfigRecordBuilder
- func (b *HarnessConfigRecordBuilder) AsConst() *HarnessConfigRecord
- func (b *HarnessConfigRecordBuilder) GetRoot() *HarnessConfigRecord
- func (b *HarnessConfigRecordBuilder) Init(allocator ...TableAllocator) bool
- func (b *HarnessConfigRecordBuilder) Lock() bool
- func (b *HarnessConfigRecordBuilder) PackMeasure() int64
- func (b *HarnessConfigRecordBuilder) PackMeasureReason() (int64, error)
- func (b *HarnessConfigRecordBuilder) Region() []byte
- func (b *HarnessConfigRecordBuilder) Shutdown()
- type HarnessConfigRecordCook
- func (cook *HarnessConfigRecordCook) Open(base unsafe.Pointer, length int64) error
- func (c HarnessConfigRecordCook) RegionAlignment() int64
- func (c HarnessConfigRecordCook) Root() *HarnessConfigRecordRow
- func (c HarnessConfigRecordCook) RootAlign() int64
- func (c HarnessConfigRecordCook) RootSize() int64
- func (c HarnessConfigRecordCook) Type() *TableCookInfo
- type HarnessConfigRecordRow
- type MemberCarry
- func MemberCarryLoad(region, wire []byte, report *TableReport) *MemberCarry
- func MemberCarryLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *MemberCarry
- func MemberCarryLoadText(text string, report *TableReport) (*MemberCarry, error)
- func MemberCarryReadStrict(wire []byte) (*MemberCarry, error)
- type MemberCarryBuilder
- func (b *MemberCarryBuilder) AsConst() *MemberCarry
- func (b *MemberCarryBuilder) GetRoot() *MemberCarry
- func (b *MemberCarryBuilder) Init(allocator ...TableAllocator) bool
- func (b *MemberCarryBuilder) Lock() bool
- func (b *MemberCarryBuilder) PackMeasure() int64
- func (b *MemberCarryBuilder) PackMeasureReason() (int64, error)
- func (b *MemberCarryBuilder) Region() []byte
- func (b *MemberCarryBuilder) Shutdown()
- type MemberCarryCook
- func (cook *MemberCarryCook) Open(base unsafe.Pointer, length int64) error
- func (c MemberCarryCook) RegionAlignment() int64
- func (c MemberCarryCook) Root() *MemberCarryRow
- func (c MemberCarryCook) RootAlign() int64
- func (c MemberCarryCook) RootSize() int64
- func (c MemberCarryCook) Type() *TableCookInfo
- type MemberCarryRow
- type TableAllocator
- type TableArena
- type TableBitReader
- type TableBitWriter
- type TableBlob
- type TableBuildVersionMismatch
- type TableByteOrder
- type TableBytesView
- type TableCookFieldInfo
- type TableCookInfo
- type TableCookStorage
- type TableExtentCarve
- type TableFieldInfo
- type TableFixedDst
- type TableFixedEntry
- type TableFixedGuardLink
- type TableFixedKnownLayout
- type TableIds
- type TableList
- type TableMap
- type TableMapIndex
- type TableMessageEntry
- type TableMessageReader
- type TableMessageShape
- type TableMessageWriter
- type TableMissingRequired
- type TableNodeDirEntry
- type TableNodeMap
- type TableNumbering
- type TableOpenVerdict
- type TableReader
- func (r *TableReader) Body() (TableReader, bool)
- func (r TableReader) EndsEarly() bool
- func (r *TableReader) Get8() uint8
- func (r *TableReader) Get16() uint16
- func (r *TableReader) Get32() uint32
- func (r *TableReader) Get64() uint64
- func (r *TableReader) Has(n int64) bool
- func (r *TableReader) Leb() (uint64, bool)
- func (r *TableReader) Resolve(ref uint64) (uint64, bool)
- func (r *TableReader) Room(n uint64) bool
- func (r *TableReader) Signed(kind uint8) int64
- func (r *TableReader) Skip(kind uint8) bool
- func (r *TableReader) Sub(n int64) TableReader
- func (r *TableReader) Take(sub TableReader)
- func (r *TableReader) Unsigned(kind uint8) uint64
- type TableRef
- type TableRefuseReason
- type TableReport
- type TableRetain
- type TableRetainId
- type TableRetainIds
- type TableRetainMessageReader
- type TableRetainReader
- type TableRetainWriter
- func (w *TableRetainWriter) Advance(n int64) bool
- func (w *TableRetainWriter) Header(ref uint64, kind uint8)
- func (w *TableRetainWriter) Id(id uint64)
- func (w *TableRetainWriter) IdAt(ordinal int, id uint64)
- func (w *TableRetainWriter) Put8(v uint8)
- func (w *TableRetainWriter) Put16(v uint16)
- func (w *TableRetainWriter) Put32(v uint32)
- func (w *TableRetainWriter) Put64(v uint64)
- func (w *TableRetainWriter) Put128(lo, hi uint64)
- func (w *TableRetainWriter) PutLeb(v uint64)
- func (w *TableRetainWriter) Raw(data []byte)
- func (w *TableRetainWriter) Trailer()
- type TableStringView
- type TableTimestampError
- type TableTypeInfo
- func DeclaredModelTableType() *TableTypeInfo
- func EntryTableType() *TableTypeInfo
- func ExitRecordTableType() *TableTypeInfo
- func FenceConfigTableType() *TableTypeInfo
- func FenceRuleTableType() *TableTypeInfo
- func HarnessConfigRecordTableType() *TableTypeInfo
- func MemberCarryTableType() *TableTypeInfo
- func WorkerRecordTableType() *TableTypeInfo
- type TableUnionArmInfo
- type TableUnionInfo
- type TableVocabulary
- type TableWorker
- type TableWriteContext
- type TableWriter
- func (w *TableWriter) Advance(n int64) bool
- func (w *TableWriter) Header(ref uint64, kind uint8)
- func (w *TableWriter) Id(id uint64)
- func (w *TableWriter) IdAt(ordinal int, id uint64)
- func (w *TableWriter) Put8(v uint8)
- func (w *TableWriter) Put16(v uint16)
- func (w *TableWriter) Put32(v uint32)
- func (w *TableWriter) Put64(v uint64)
- func (w *TableWriter) Put128(lo, hi uint64)
- func (w *TableWriter) PutLeb(v uint64)
- func (w *TableWriter) Raw(data []byte)
- func (w *TableWriter) Trailer()
- type UnitViewInfo
- type ViewConstant
- type ViewType
- type ViewVariant
- type ViewVocabulary
- type WorkerRecord
- func WorkerRecordLoad(region, wire []byte, report *TableReport) *WorkerRecord
- func WorkerRecordLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *WorkerRecord
- func WorkerRecordLoadText(text string, report *TableReport) (*WorkerRecord, error)
- func WorkerRecordReadStrict(wire []byte) (*WorkerRecord, error)
- type WorkerRecordBuilder
- func (b *WorkerRecordBuilder) AsConst() *WorkerRecord
- func (b *WorkerRecordBuilder) GetRoot() *WorkerRecord
- func (b *WorkerRecordBuilder) Init(allocator ...TableAllocator) bool
- func (b *WorkerRecordBuilder) Lock() bool
- func (b *WorkerRecordBuilder) PackMeasure() int64
- func (b *WorkerRecordBuilder) PackMeasureReason() (int64, error)
- func (b *WorkerRecordBuilder) Region() []byte
- func (b *WorkerRecordBuilder) Shutdown()
- type WorkerRecordCook
- func (cook *WorkerRecordCook) Open(base unsafe.Pointer, length int64) error
- func (c WorkerRecordCook) RegionAlignment() int64
- func (c WorkerRecordCook) Root() *WorkerRecordRow
- func (c WorkerRecordCook) RootAlign() int64
- func (c WorkerRecordCook) RootSize() int64
- func (c WorkerRecordCook) Type() *TableCookInfo
- type WorkerRecordRow
Constants ¶
const ( TableFixedReasonPreviousForm = "previous_form" TableFixedReasonMessageFormAsFile = "message_form_as_file" TableFixedReasonNewerForm = "newer_form" TableFixedReasonLayoutMalformed = "layout_malformed" TableFixedReasonLayoutUnknown = "layout_unknown" TableFixedReasonLayoutNewer = "layout_newer" TableFixedReasonLayoutUnsupported = "layout_unsupported" TableFixedReasonLayoutRecordTooLarge = "layout_record_too_large" TableFixedReasonPlanTooLarge = "plan_too_large" TableFixedReasonBatchTooLarge = "batch_too_large" TableFixedReasonNoLayout = "no_layout" TableFixedReasonTextIllFormed = "text_ill_formed" TableFixedReasonTruncated = "truncated" TableFixedReasonReservedNotZero = "reserved_not_zero" )
THE FIXED LOAD'S REFUSAL NAMES — EXPORTED (mas-bandwidth/schema docs/FIXED-FORM-ALGORITHM.md §5.3, mas-bandwidth/schema docs/SPEC-TABLES.md §3.4). Every refusal of the fixed load has a name, the framing-damage returns included, so an adopter's existing report.Reason == "layout_newer" comparisons keep compiling against these constants; the emitted <T>FixedLoad names every reason constant in place of a string literal.
TableFixedReasonLayoutUnknown is the Reason of a file whose header hash no entry of this build's lineage holds (mas-bandwidth/schema docs/SPEC-TABLES.md §21.3, algorithm §5.3 step 5). It says what the reader knows and not which way the file lies: a newer writer's layout, an older one nobody locked and a damaged hash byte read the same.
TableFixedReasonLayoutNewer ("ship the reader") is RESERVED (SPEC-TABLES §21.3) for a hash the lock lineage proves newer, which nothing on the wire or in the lock does today, so no Go fixed load answers it; it stays exported so an adopter's existing comparisons keep compiling.
const BuildVersion uint64 = 0xf68f2347eaf1d0d1
BuildVersion is the unit's build version (mas-bandwidth/schema docs/SPEC-TABLES.md §20): the one digest a block carries and BlockOpen compares, and the fact §3.3's announcement carries before the first body so a peer's build is knowable.
const DeclaredModelLoadRetainBuilder = "DeclaredModel: retention requires a region round trip through the VARIABLE form"
const DeclaredModelSaveRetainMessages = "DeclaredModel: retention requires a region round trip through the VARIABLE form"
const EntryLoadRetainBuilder = "Entry: retention requires a region round trip through the VARIABLE form"
const EntrySaveRetainMessages = "Entry: retention requires a region round trip through the VARIABLE form"
const ExitRecordLoadRetainBuilder = "ExitRecord: retention requires a region round trip through the VARIABLE form"
const ExitRecordSaveRetainMessages = "ExitRecord: retention requires a region round trip through the VARIABLE form"
const FenceConfigLoadRetainBuilder = "FenceConfig: retention requires a region round trip through the VARIABLE form"
const FenceConfigSaveRetainMessages = "FenceConfig: retention requires a region round trip through the VARIABLE form"
const FenceRuleLoadRetainBuilder = "FenceRule: retention requires a region round trip through the VARIABLE form"
const FenceRuleSaveRetainMessages = "FenceRule: retention requires a region round trip through the VARIABLE form"
const HarnessConfigRecordLoadRetainBuilder = "HarnessConfigRecord: retention requires a region round trip through the VARIABLE form"
const HarnessConfigRecordSaveRetainMessages = "HarnessConfigRecord: retention requires a region round trip through the VARIABLE form"
const MemberCarryLoadRetainBuilder = "MemberCarry: retention requires a region round trip through the VARIABLE form"
const MemberCarrySaveRetainMessages = "MemberCarry: retention requires a region round trip through the VARIABLE form"
const ProtocolId uint64 = 0xa9d9b2293e101dd5
The unit's protocol id — the hash of its wire shape (SPEC §3.1). Two sides at the same id speak identical bits; there is no other versioning.
const TableCookHeaderBytes int64 = 64
TableCookHeaderBytes is §7.1's header: 64 bytes of u64 words. The DATA part begins at align_up(64, alignment) — DERIVED and not a header field, because a fact a reader computes is a fact two writers cannot disagree about.
const TableCookMagic uint64 = 0x4b4f4f434d484353
TableCookMagic is the cook's magic (mas-bandwidth/schema docs/SPEC-TABLES.md §7.1), read before anything else: it is what establishes the byte order every other header word is written in, and it is also what separates a COOK from a BLOCK — the two accelerators carry the same build version and different magics, because a form's identity belongs in its magic rather than in a second digest.
The value is "SCHMCOOK" read as ASCII in the byte order a little-endian store produces, so a hex dump of a little-endian cook is legible.
const TableCookMaxAlign int64 = 64
TableCookMaxAlign is the ceiling on the header's alignment word: the same sixty-four a block's base takes (§19.1), past which the derived data offset would no longer be the 64 every unit this language can declare produces.
const TableDocNone = ""
THE SHARED EMPTY DOC (mas-bandwidth/schema docs/SPEC-TABLES.md §8.1): a declaration with no /// block carries a doc column naming this one definition, so absence costs a unit no string data and a printer concatenates doc columns with no nil test. Go gives a string no address identity, so what the rule is READ OFF here is the emitted text: the generated file defines the empty doc once and every unannotated row names that definition, rather than each row carrying an inline "" of its own.
const TableFixedForm uint8 = 3
const TableFixedHashAt = 8
const TableFixedHeaderBytes = 16
const TableMessageBatchMax = 256
const TableMessageEntriesHere = 54
const TableMessageRefBitsHere = 6
const WorkerRecordLoadRetainBuilder = "WorkerRecord: retention requires a region round trip through the VARIABLE form"
const WorkerRecordSaveRetainMessages = "WorkerRecord: retention requires a region round trip through the VARIABLE form"
Variables ¶
var DeclaredModelTableFields = []TableFieldInfo{ {Name: "provider", Json: "provider", TypeName: "string", DeclaredTypeName: "string", Id: 0xd02b4c8c65fb54dc, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(DeclaredModel{}.Provider)), ElemSize: uint32(unsafe.Sizeof(DeclaredModel{}.Provider)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "model", Json: "model", TypeName: "string", DeclaredTypeName: "string", Id: 0x9de543933e6e703a, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(DeclaredModel{}.Model)), ElemSize: uint32(unsafe.Sizeof(DeclaredModel{}.Model)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
DeclaredModelTableFields is DeclaredModel's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var EntryTableFields = []TableFieldInfo{ {Name: "value", Json: "value", TypeName: "string", DeclaredTypeName: "string", Id: 0x7ce4fd9430e80cea, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(Entry{}.Value)), ElemSize: uint32(unsafe.Sizeof(Entry{}.Value)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
EntryTableFields is Entry's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var ErrValidation = errors.New("swarmwire: wire validation failed")
ErrValidation is returned when a read rejects the wire: a wrong constant, nonzero reserved bits, or an interior null in a string (SPEC §4.3, §4.7).
var ExitRecordTableFields = []TableFieldInfo{ {Name: "rc", Json: "rc", TypeName: "int64", DeclaredTypeName: "int64", Id: 0x8dc5507b57b9942, Kind: 5, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Rc)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Rc)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "signal", Json: "signal", TypeName: "string", DeclaredTypeName: "string", Id: 0x5062cd8f7a7fd349, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Signal)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Signal)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "ended", Json: "ended", TypeName: "string", DeclaredTypeName: "string", Id: 0x34bb12befe88eb1b, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Ended)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Ended)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 16, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "survivors", Json: "survivors", TypeName: "int64", DeclaredTypeName: "int64", Id: 0xbc658a10e66b2a64, Kind: 5, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Survivors)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Survivors)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 24, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "nonce", Json: "nonce", TypeName: "string", DeclaredTypeName: "string", Id: 0x73a94c71d60dc0d8, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Nonce)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Nonce)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 32, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "attest", Json: "attest", TypeName: "string", DeclaredTypeName: "string", Id: 0x907bd39a08f34aac, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Attest)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Attest)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 40, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "end", Json: "end", TypeName: "string", DeclaredTypeName: "string", Id: 0xc2f00318f053500a, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.End)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.End)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 48, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "spent", Json: "spent", TypeName: "int64", DeclaredTypeName: "int64", Id: 0x22705b8aa011b9a3, Kind: 5, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Spent)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Spent)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 56, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "observed", Json: "observed", TypeName: "bool", DeclaredTypeName: "bool", Id: 0x6a15c2158aa39ba1, Kind: 1, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Observed)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Observed)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 64, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "partial", Json: "partial", TypeName: "bool", DeclaredTypeName: "bool", Id: 0xb5d43e6c2878bc7a, Kind: 1, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Partial)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Partial)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 65, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "reason", Json: "reason", TypeName: "string", DeclaredTypeName: "string", Id: 0x65e8d7f3474f2639, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(ExitRecord{}.Reason)), ElemSize: uint32(unsafe.Sizeof(ExitRecord{}.Reason)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 72, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
ExitRecordTableFields is ExitRecord's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var FenceConfigTableFields = []TableFieldInfo{ {Name: "job_dir", Json: "job_dir", TypeName: "string", DeclaredTypeName: "string", Id: 0x30f206af480f8a8, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(FenceConfig{}.JobDir)), ElemSize: uint32(unsafe.Sizeof(FenceConfig{}.JobDir)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "reads", Json: "reads", TypeName: "Entry", DeclaredTypeName: "Entry", Id: 0x8935b4f305f36a82, Kind: 13, IsArray: true, Counted: true, Optional: false, ArrayBound: 2147483647, Offset: uint32(unsafe.Offsetof(FenceConfig{}.Reads)), ElemSize: uint32(unsafe.Sizeof(*new(EntryRow))), CountOffset: (uint32(unsafe.Offsetof(FenceConfig{}.Reads))) + 8, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 8, CookCountOffset: 16, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, List: true, ElemAlign: 8, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: EntryTableType, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "rules", Json: "rules", TypeName: "FenceRule", DeclaredTypeName: "FenceRule", Id: 0x67124f6a285153c0, Kind: 13, IsArray: true, Counted: true, Optional: false, ArrayBound: 2147483647, Offset: uint32(unsafe.Offsetof(FenceConfig{}.Rules)), ElemSize: uint32(unsafe.Sizeof(*new(FenceRuleRow))), CountOffset: (uint32(unsafe.Offsetof(FenceConfig{}.Rules))) + 8, PresentOffset: 0xffffffff, CookOffset: 24, CookElemSize: 16, CookCountOffset: 32, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, List: true, ElemAlign: 8, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: FenceRuleTableType, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "webfetch", Json: "webfetch", TypeName: "uint8", DeclaredTypeName: "uint8", Id: 0x58848fa93e04d3ef, Kind: 6, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(FenceConfig{}.Webfetch)), ElemSize: uint32(unsafe.Sizeof(FenceConfig{}.Webfetch)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 40, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 2.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
FenceConfigTableFields is FenceConfig's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var FenceRuleTableFields = []TableFieldInfo{ {Name: "pattern", Json: "pattern", TypeName: "string", DeclaredTypeName: "string", Id: 0xb7a1e4bea695f89, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(FenceRule{}.Pattern)), ElemSize: uint32(unsafe.Sizeof(FenceRule{}.Pattern)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "action", Json: "action", TypeName: "uint8", DeclaredTypeName: "uint8", Id: 0x6568640b035a56df, Kind: 6, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(FenceRule{}.Action)), ElemSize: uint32(unsafe.Sizeof(FenceRule{}.Action)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 2.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
FenceRuleTableFields is FenceRule's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var HarnessConfigRecordTableFields = []TableFieldInfo{ {Name: "provider", Json: "provider", TypeName: "string", DeclaredTypeName: "string", Id: 0xd02b4c8c65fb54dc, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(HarnessConfigRecord{}.Provider)), ElemSize: uint32(unsafe.Sizeof(HarnessConfigRecord{}.Provider)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "model", Json: "model", TypeName: "string", DeclaredTypeName: "string", Id: 0x9de543933e6e703a, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(HarnessConfigRecord{}.Model)), ElemSize: uint32(unsafe.Sizeof(HarnessConfigRecord{}.Model)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "env_var", Json: "env_var", TypeName: "string", DeclaredTypeName: "string", Id: 0x5f52c402ed58e01a, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(HarnessConfigRecord{}.EnvVar)), ElemSize: uint32(unsafe.Sizeof(HarnessConfigRecord{}.EnvVar)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 16, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "base_url", Json: "base_url", TypeName: "string", DeclaredTypeName: "string", Id: 0x9a3b153e9e8f251e, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(HarnessConfigRecord{}.BaseUrl)), ElemSize: uint32(unsafe.Sizeof(HarnessConfigRecord{}.BaseUrl)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 24, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
HarnessConfigRecordTableFields is HarnessConfigRecord's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var MemberCarryTableFields = []TableFieldInfo{ {Name: "card", Json: "card", TypeName: "string", DeclaredTypeName: "string", Id: 0xb5614e90e87b455f, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(MemberCarry{}.Card)), ElemSize: uint32(unsafe.Sizeof(MemberCarry{}.Card)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "attempt", Json: "attempt", TypeName: "int64", DeclaredTypeName: "int64", Id: 0x63e618bd2b303dee, Kind: 5, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(MemberCarry{}.Attempt)), ElemSize: uint32(unsafe.Sizeof(MemberCarry{}.Attempt)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 9.223372036854776e+18, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "head", Json: "head", TypeName: "string", DeclaredTypeName: "string", Id: 0xa8f12cc5f9a0c03, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(MemberCarry{}.Head)), ElemSize: uint32(unsafe.Sizeof(MemberCarry{}.Head)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 16, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "branch", Json: "branch", TypeName: "string", DeclaredTypeName: "string", Id: 0x919ec0f651278ba5, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(MemberCarry{}.Branch)), ElemSize: uint32(unsafe.Sizeof(MemberCarry{}.Branch)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 24, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
MemberCarryTableFields is MemberCarry's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var TableCookByteOrder = tableCookNativeOrder()
TableCookByteOrder is THIS BUILD's byte order, as §7.1's order word records it. The byte order is settled AT COOK TIME for the target build, so a matching build version already means a matching order and Open never fixes anything up; a cook whose recorded order is not this build's is simply not this build's file.
var WorkerRecordTableFields = []TableFieldInfo{ {Name: "name", Json: "name", TypeName: "string", DeclaredTypeName: "string", Id: 0xc4bcadba8e631b86, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Name)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Name)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 0, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "provider", Json: "provider", TypeName: "string", DeclaredTypeName: "string", Id: 0xd02b4c8c65fb54dc, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Provider)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Provider)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 8, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "model", Json: "model", TypeName: "string", DeclaredTypeName: "string", Id: 0x9de543933e6e703a, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Model)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Model)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 16, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "base_url", Json: "base_url", TypeName: "string", DeclaredTypeName: "string", Id: 0x9a3b153e9e8f251e, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.BaseUrl)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.BaseUrl)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 24, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "env_var", Json: "env_var", TypeName: "string", DeclaredTypeName: "string", Id: 0x5f52c402ed58e01a, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.EnvVar)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.EnvVar)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 32, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "key_file", Json: "key_file", TypeName: "string", DeclaredTypeName: "string", Id: 0x59f4ff1e856996af, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.KeyFile)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.KeyFile)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 40, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "secret", Json: "secret", TypeName: "string", DeclaredTypeName: "string", Id: 0xab23f0eec020c951, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Secret)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Secret)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 48, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "usage", Json: "usage", TypeName: "uint8", DeclaredTypeName: "uint8", Id: 0x1e1702714db75ac8, Kind: 6, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Usage)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Usage)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 56, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 2.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "worker_class", Json: "worker_class", TypeName: "uint8", DeclaredTypeName: "uint8", Id: 0x715b9112503b65d0, Kind: 6, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.WorkerClass)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.WorkerClass)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 57, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 2.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "harness", Json: "harness", TypeName: "string", DeclaredTypeName: "string", Id: 0x211fcbbafe5331ab, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Harness)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Harness)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 64, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "harness_args", Json: "harness_args", TypeName: "Entry", DeclaredTypeName: "Entry", Id: 0xe15a71de737c1c11, Kind: 13, IsArray: true, Counted: true, Optional: false, ArrayBound: 2147483647, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.HarnessArgs)), ElemSize: uint32(unsafe.Sizeof(*new(EntryRow))), CountOffset: (uint32(unsafe.Offsetof(WorkerRecord{}.HarnessArgs))) + 8, PresentOffset: 0xffffffff, CookOffset: 72, CookElemSize: 8, CookCountOffset: 80, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, List: true, ElemAlign: 8, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: EntryTableType, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "worker_dir", Json: "worker_dir", TypeName: "string", DeclaredTypeName: "string", Id: 0xf6b3b625055a22af, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.WorkerDir)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.WorkerDir)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 88, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "deadline", Json: "deadline", TypeName: "string", DeclaredTypeName: "string", Id: 0x4abbaca40bb6fe75, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Deadline)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Deadline)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 96, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "board", Json: "board", TypeName: "string", DeclaredTypeName: "string", Id: 0xd0013bb2e083188b, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.Board)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.Board)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 104, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "read_roots", Json: "read_roots", TypeName: "Entry", DeclaredTypeName: "Entry", Id: 0xf7df2f140b025f4b, Kind: 13, IsArray: true, Counted: true, Optional: false, ArrayBound: 2147483647, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.ReadRoots)), ElemSize: uint32(unsafe.Sizeof(*new(EntryRow))), CountOffset: (uint32(unsafe.Offsetof(WorkerRecord{}.ReadRoots))) + 8, PresentOffset: 0xffffffff, CookOffset: 112, CookElemSize: 8, CookCountOffset: 120, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, List: true, ElemAlign: 8, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: EntryTableType, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "max_turns", Json: "max_turns", TypeName: "int64", DeclaredTypeName: "int64", Id: 0x6e3350b274605c16, Kind: 5, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.MaxTurns)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.MaxTurns)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 128, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 9.223372036854776e+18, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "max_cache_read", Json: "max_cache_read", TypeName: "int64", DeclaredTypeName: "int64", Id: 0x18e16aeddf76561d, Kind: 5, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.MaxCacheRead)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.MaxCacheRead)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 136, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: true, RangeMin: 0.0, RangeMax: 9.223372036854776e+18, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "input_limit_phrases", Json: "input_limit_phrases", TypeName: "Entry", DeclaredTypeName: "Entry", Id: 0xf9d5642cca9049fa, Kind: 13, IsArray: true, Counted: true, Optional: false, ArrayBound: 2147483647, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.InputLimitPhrases)), ElemSize: uint32(unsafe.Sizeof(*new(EntryRow))), CountOffset: (uint32(unsafe.Offsetof(WorkerRecord{}.InputLimitPhrases))) + 8, PresentOffset: 0xffffffff, CookOffset: 144, CookElemSize: 8, CookCountOffset: 152, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, List: true, ElemAlign: 8, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: EntryTableType, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "launch_grace", Json: "launch_grace", TypeName: "string", DeclaredTypeName: "string", Id: 0x98358983bb5d1401, Kind: 17, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.LaunchGrace)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.LaunchGrace)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 160, CookElemSize: 8, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: true, TargetId: 0x704be0d8faaffc58, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, {Name: "keep_data", Json: "keep_data", TypeName: "bool", DeclaredTypeName: "bool", Id: 0x393f74e7cef3c9d5, Kind: 1, IsArray: false, Counted: false, Optional: false, ArrayBound: 0, Offset: uint32(unsafe.Offsetof(WorkerRecord{}.KeepData)), ElemSize: uint32(unsafe.Sizeof(WorkerRecord{}.KeepData)), CountOffset: 0xffffffff, PresentOffset: 0xffffffff, CookOffset: 168, CookElemSize: 1, CookCountOffset: 4294967295, CookPresentOffset: 4294967295, HasRange: false, RangeMin: 0.0, RangeMax: 0.0, EnumMax: -1, FracBits: 0, Pointer: false, TargetId: 0x0000000000000000, EnumName: nil, VariantId: nil, KeyTypeName: "", KeyName: nil, KeyId: nil, Arms: nil, Guard: "", Table: nil, Doc: TableDocNone, NumTags: 0, Tags: nil}, }
WorkerRecordTableFields is WorkerRecord's per-field reflection data (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
Functions ¶
func AnnounceMeasure ¶
func AnnounceMeasure() int64
func AnnounceRead ¶
func AnnounceRead(v *TableVocabulary, data []byte, report *TableReport) bool
func DeclaredModelCookFrom ¶
func DeclaredModelCookFrom(value *DeclaredModel, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func DeclaredModelCookMeasure ¶
func DeclaredModelCookMeasure(value *DeclaredModel, context ...TableWriteContext) int64
func DeclaredModelCookMeasureReason ¶
func DeclaredModelCookMeasureReason(value *DeclaredModel, context ...TableWriteContext) (int64, error)
func DeclaredModelFromJson ¶
func DeclaredModelFromJson(builder *DeclaredModelBuilder, text []byte, report *TableReport) bool
func DeclaredModelLoadBody ¶
func DeclaredModelLoadBody(r *TableReader, value *DeclaredModel) bool
func DeclaredModelLoadBodyRetain ¶
func DeclaredModelLoadBodyRetain(r *TableRetainReader, value *DeclaredModel) bool
func DeclaredModelLoadBuilder ¶
func DeclaredModelLoadBuilder(b *DeclaredModelBuilder, wire []byte, report *TableReport) bool
func DeclaredModelLoadMessageBody ¶
func DeclaredModelLoadMessageBody(r *TableMessageReader, value *DeclaredModel) bool
func DeclaredModelLoadMessageBodyRetain ¶
func DeclaredModelLoadMessageBodyRetain(r *TableRetainMessageReader, value *DeclaredModel) bool
func DeclaredModelMeasure ¶
func DeclaredModelMeasure(value *DeclaredModel, context ...TableWriteContext) int64
func DeclaredModelMeasureBody ¶
func DeclaredModelMeasureBody(value *DeclaredModel, ids *TableIds) int64
func DeclaredModelMeasureBodyRetain ¶
func DeclaredModelMeasureBodyRetain(value *DeclaredModel, ids *TableRetainIds) int64
func DeclaredModelMeasureReason ¶
func DeclaredModelMeasureReason(value *DeclaredModel, context ...TableWriteContext) (int64, error)
func DeclaredModelMeasureRetain ¶
func DeclaredModelMeasureRetain(value *DeclaredModel, retain *TableRetain, allocator ...TableAllocator) int64
func DeclaredModelOpen ¶
func DeclaredModelOpen(cook *DeclaredModelCook, base unsafe.Pointer, length int64) bool
DeclaredModelOpen is the bool convenience for the typed Open error on the handle.
func DeclaredModelReset ¶
func DeclaredModelReset(value *DeclaredModel)
DeclaredModelReset restores DeclaredModel's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func DeclaredModelSave ¶
func DeclaredModelSave(value *DeclaredModel, buffer []byte, context ...TableWriteContext) int64
func DeclaredModelSaveBody ¶
func DeclaredModelSaveBody(w *TableWriter, value *DeclaredModel) bool
func DeclaredModelSaveBodyFields ¶
func DeclaredModelSaveBodyFields(w *TableWriter, value *DeclaredModel) bool
func DeclaredModelSaveBodyFieldsRetain ¶
func DeclaredModelSaveBodyFieldsRetain(w *TableRetainWriter, value *DeclaredModel) bool
func DeclaredModelSaveBodyRetain ¶
func DeclaredModelSaveBodyRetain(w *TableRetainWriter, value *DeclaredModel) bool
func DeclaredModelSaveMessageBody ¶
func DeclaredModelSaveMessageBody(w *TableMessageWriter, value *DeclaredModel) bool
func DeclaredModelSaveRetain ¶
func DeclaredModelSaveRetain(value *DeclaredModel, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func DeclaredModelSaveText ¶
func DeclaredModelSaveText(value *DeclaredModel, context ...TableWriteContext) (string, error)
DeclaredModelSaveText returns the base64 of DeclaredModel's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context DeclaredModelSave takes.
func DeclaredModelToJson ¶
func DeclaredModelToJson(value *DeclaredModel, buffer []byte, allocator ...TableAllocator) int64
func DeclaredModelToJsonMeasure ¶
func DeclaredModelToJsonMeasure(value *DeclaredModel, allocator ...TableAllocator) int64
func EntryCookFrom ¶
func EntryCookFrom(value *Entry, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func EntryCookMeasure ¶
func EntryCookMeasure(value *Entry, context ...TableWriteContext) int64
func EntryCookMeasureReason ¶
func EntryCookMeasureReason(value *Entry, context ...TableWriteContext) (int64, error)
func EntryFromJson ¶
func EntryFromJson(builder *EntryBuilder, text []byte, report *TableReport) bool
func EntryLoadBody ¶
func EntryLoadBody(r *TableReader, value *Entry) bool
func EntryLoadBodyRetain ¶
func EntryLoadBodyRetain(r *TableRetainReader, value *Entry) bool
func EntryLoadBuilder ¶
func EntryLoadBuilder(b *EntryBuilder, wire []byte, report *TableReport) bool
func EntryLoadMeasure ¶
func EntryLoadMeasureReason ¶
func EntryLoadMessageBody ¶
func EntryLoadMessageBody(r *TableMessageReader, value *Entry) bool
func EntryLoadMessageBodyRetain ¶
func EntryLoadMessageBodyRetain(r *TableRetainMessageReader, value *Entry) bool
func EntryMeasure ¶
func EntryMeasure(value *Entry, context ...TableWriteContext) int64
func EntryMeasureBody ¶
func EntryMeasureBodyRetain ¶
func EntryMeasureBodyRetain(value *Entry, ids *TableRetainIds) int64
func EntryMeasureReason ¶
func EntryMeasureReason(value *Entry, context ...TableWriteContext) (int64, error)
func EntryMeasureRetain ¶
func EntryMeasureRetain(value *Entry, retain *TableRetain, allocator ...TableAllocator) int64
func EntryReset ¶
func EntryReset(value *Entry)
EntryReset restores Entry's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func EntrySaveBody ¶
func EntrySaveBody(w *TableWriter, value *Entry) bool
func EntrySaveBodyFields ¶
func EntrySaveBodyFields(w *TableWriter, value *Entry) bool
func EntrySaveBodyFieldsRetain ¶
func EntrySaveBodyFieldsRetain(w *TableRetainWriter, value *Entry) bool
func EntrySaveBodyRetain ¶
func EntrySaveBodyRetain(w *TableRetainWriter, value *Entry) bool
func EntrySaveMessageBody ¶
func EntrySaveMessageBody(w *TableMessageWriter, value *Entry) bool
func EntrySaveRetain ¶
func EntrySaveRetain(value *Entry, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func EntrySaveText ¶
func EntrySaveText(value *Entry, context ...TableWriteContext) (string, error)
EntrySaveText returns the base64 of Entry's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context EntrySave takes.
func EntryToJson ¶
func EntryToJson(value *Entry, buffer []byte, allocator ...TableAllocator) int64
func EntryToJsonMeasure ¶
func EntryToJsonMeasure(value *Entry, allocator ...TableAllocator) int64
func ExitRecordCookFrom ¶
func ExitRecordCookFrom(value *ExitRecord, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func ExitRecordCookMeasure ¶
func ExitRecordCookMeasure(value *ExitRecord, context ...TableWriteContext) int64
func ExitRecordCookMeasureReason ¶
func ExitRecordCookMeasureReason(value *ExitRecord, context ...TableWriteContext) (int64, error)
func ExitRecordFromJson ¶
func ExitRecordFromJson(builder *ExitRecordBuilder, text []byte, report *TableReport) bool
func ExitRecordLoadBody ¶
func ExitRecordLoadBody(r *TableReader, value *ExitRecord) bool
func ExitRecordLoadBodyRetain ¶
func ExitRecordLoadBodyRetain(r *TableRetainReader, value *ExitRecord) bool
func ExitRecordLoadBuilder ¶
func ExitRecordLoadBuilder(b *ExitRecordBuilder, wire []byte, report *TableReport) bool
func ExitRecordLoadMeasure ¶
func ExitRecordLoadMessageBody ¶
func ExitRecordLoadMessageBody(r *TableMessageReader, value *ExitRecord) bool
func ExitRecordLoadMessageBodyRetain ¶
func ExitRecordLoadMessageBodyRetain(r *TableRetainMessageReader, value *ExitRecord) bool
func ExitRecordMeasure ¶
func ExitRecordMeasure(value *ExitRecord, context ...TableWriteContext) int64
func ExitRecordMeasureBody ¶
func ExitRecordMeasureBody(value *ExitRecord, ids *TableIds) int64
func ExitRecordMeasureBodyRetain ¶
func ExitRecordMeasureBodyRetain(value *ExitRecord, ids *TableRetainIds) int64
func ExitRecordMeasureReason ¶
func ExitRecordMeasureReason(value *ExitRecord, context ...TableWriteContext) (int64, error)
func ExitRecordMeasureRetain ¶
func ExitRecordMeasureRetain(value *ExitRecord, retain *TableRetain, allocator ...TableAllocator) int64
func ExitRecordOpen ¶
func ExitRecordOpen(cook *ExitRecordCook, base unsafe.Pointer, length int64) bool
ExitRecordOpen is the bool convenience for the typed Open error on the handle.
func ExitRecordReset ¶
func ExitRecordReset(value *ExitRecord)
ExitRecordReset restores ExitRecord's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func ExitRecordSave ¶
func ExitRecordSave(value *ExitRecord, buffer []byte, context ...TableWriteContext) int64
func ExitRecordSaveBody ¶
func ExitRecordSaveBody(w *TableWriter, value *ExitRecord) bool
func ExitRecordSaveBodyFields ¶
func ExitRecordSaveBodyFields(w *TableWriter, value *ExitRecord) bool
func ExitRecordSaveBodyFieldsRetain ¶
func ExitRecordSaveBodyFieldsRetain(w *TableRetainWriter, value *ExitRecord) bool
func ExitRecordSaveBodyRetain ¶
func ExitRecordSaveBodyRetain(w *TableRetainWriter, value *ExitRecord) bool
func ExitRecordSaveMessageBody ¶
func ExitRecordSaveMessageBody(w *TableMessageWriter, value *ExitRecord) bool
func ExitRecordSaveRetain ¶
func ExitRecordSaveRetain(value *ExitRecord, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func ExitRecordSaveText ¶
func ExitRecordSaveText(value *ExitRecord, context ...TableWriteContext) (string, error)
ExitRecordSaveText returns the base64 of ExitRecord's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context ExitRecordSave takes.
func ExitRecordToJson ¶
func ExitRecordToJson(value *ExitRecord, buffer []byte, allocator ...TableAllocator) int64
func ExitRecordToJsonMeasure ¶
func ExitRecordToJsonMeasure(value *ExitRecord, allocator ...TableAllocator) int64
func FenceConfigCookFrom ¶
func FenceConfigCookFrom(value *FenceConfig, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func FenceConfigCookMeasure ¶
func FenceConfigCookMeasure(value *FenceConfig, context ...TableWriteContext) int64
func FenceConfigCookMeasureReason ¶
func FenceConfigCookMeasureReason(value *FenceConfig, context ...TableWriteContext) (int64, error)
func FenceConfigFromJson ¶
func FenceConfigFromJson(builder *FenceConfigBuilder, text []byte, report *TableReport) bool
func FenceConfigLoadBody ¶
func FenceConfigLoadBody(r *TableReader, value *FenceConfig) bool
func FenceConfigLoadBodyRetain ¶
func FenceConfigLoadBodyRetain(r *TableRetainReader, value *FenceConfig) bool
func FenceConfigLoadBuilder ¶
func FenceConfigLoadBuilder(b *FenceConfigBuilder, wire []byte, report *TableReport) bool
func FenceConfigLoadMeasure ¶
func FenceConfigLoadMessageBody ¶
func FenceConfigLoadMessageBody(r *TableMessageReader, value *FenceConfig) bool
func FenceConfigLoadMessageBodyRetain ¶
func FenceConfigLoadMessageBodyRetain(r *TableRetainMessageReader, value *FenceConfig) bool
func FenceConfigMeasure ¶
func FenceConfigMeasure(value *FenceConfig, context ...TableWriteContext) int64
func FenceConfigMeasureBody ¶
func FenceConfigMeasureBody(value *FenceConfig, ids *TableIds) int64
func FenceConfigMeasureBodyRetain ¶
func FenceConfigMeasureBodyRetain(value *FenceConfig, ids *TableRetainIds) int64
func FenceConfigMeasureReason ¶
func FenceConfigMeasureReason(value *FenceConfig, context ...TableWriteContext) (int64, error)
func FenceConfigMeasureRetain ¶
func FenceConfigMeasureRetain(value *FenceConfig, retain *TableRetain, allocator ...TableAllocator) int64
func FenceConfigOpen ¶
func FenceConfigOpen(cook *FenceConfigCook, base unsafe.Pointer, length int64) bool
FenceConfigOpen is the bool convenience for the typed Open error on the handle.
func FenceConfigReadsEach ¶
func FenceConfigReadsErase ¶
func FenceConfigReadsErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
func FenceConfigReset ¶
func FenceConfigReset(value *FenceConfig)
FenceConfigReset restores FenceConfig's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func FenceConfigRulesEach ¶
func FenceConfigRulesEach(holder *TableList[FenceRuleRow], visit func(*FenceRuleRow) bool, arena ...*TableArena) bool
func FenceConfigRulesErase ¶
func FenceConfigRulesErase(arena *TableArena, holder *TableList[FenceRuleRow], element *FenceRuleRow) bool
func FenceConfigSave ¶
func FenceConfigSave(value *FenceConfig, buffer []byte, context ...TableWriteContext) int64
func FenceConfigSaveBody ¶
func FenceConfigSaveBody(w *TableWriter, value *FenceConfig) bool
func FenceConfigSaveBodyFields ¶
func FenceConfigSaveBodyFields(w *TableWriter, value *FenceConfig) bool
func FenceConfigSaveBodyFieldsRetain ¶
func FenceConfigSaveBodyFieldsRetain(w *TableRetainWriter, value *FenceConfig) bool
func FenceConfigSaveBodyRetain ¶
func FenceConfigSaveBodyRetain(w *TableRetainWriter, value *FenceConfig) bool
func FenceConfigSaveMessageBody ¶
func FenceConfigSaveMessageBody(w *TableMessageWriter, value *FenceConfig) bool
func FenceConfigSaveRetain ¶
func FenceConfigSaveRetain(value *FenceConfig, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func FenceConfigSaveText ¶
func FenceConfigSaveText(value *FenceConfig, context ...TableWriteContext) (string, error)
FenceConfigSaveText returns the base64 of FenceConfig's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context FenceConfigSave takes.
func FenceConfigToJson ¶
func FenceConfigToJson(value *FenceConfig, buffer []byte, allocator ...TableAllocator) int64
func FenceConfigToJsonMeasure ¶
func FenceConfigToJsonMeasure(value *FenceConfig, allocator ...TableAllocator) int64
func FenceRuleCookFrom ¶
func FenceRuleCookFrom(value *FenceRule, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func FenceRuleCookMeasure ¶
func FenceRuleCookMeasure(value *FenceRule, context ...TableWriteContext) int64
func FenceRuleCookMeasureReason ¶
func FenceRuleCookMeasureReason(value *FenceRule, context ...TableWriteContext) (int64, error)
func FenceRuleFromJson ¶
func FenceRuleFromJson(builder *FenceRuleBuilder, text []byte, report *TableReport) bool
func FenceRuleLoadBody ¶
func FenceRuleLoadBody(r *TableReader, value *FenceRule) bool
func FenceRuleLoadBodyRetain ¶
func FenceRuleLoadBodyRetain(r *TableRetainReader, value *FenceRule) bool
func FenceRuleLoadBuilder ¶
func FenceRuleLoadBuilder(b *FenceRuleBuilder, wire []byte, report *TableReport) bool
func FenceRuleLoadMeasure ¶
func FenceRuleLoadMessageBody ¶
func FenceRuleLoadMessageBody(r *TableMessageReader, value *FenceRule) bool
func FenceRuleLoadMessageBodyRetain ¶
func FenceRuleLoadMessageBodyRetain(r *TableRetainMessageReader, value *FenceRule) bool
func FenceRuleMeasure ¶
func FenceRuleMeasure(value *FenceRule, context ...TableWriteContext) int64
func FenceRuleMeasureBody ¶
func FenceRuleMeasureBodyRetain ¶
func FenceRuleMeasureBodyRetain(value *FenceRule, ids *TableRetainIds) int64
func FenceRuleMeasureReason ¶
func FenceRuleMeasureReason(value *FenceRule, context ...TableWriteContext) (int64, error)
func FenceRuleMeasureRetain ¶
func FenceRuleMeasureRetain(value *FenceRule, retain *TableRetain, allocator ...TableAllocator) int64
func FenceRuleOpen ¶
func FenceRuleOpen(cook *FenceRuleCook, base unsafe.Pointer, length int64) bool
FenceRuleOpen is the bool convenience for the typed Open error on the handle.
func FenceRuleReset ¶
func FenceRuleReset(value *FenceRule)
FenceRuleReset restores FenceRule's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func FenceRuleSave ¶
func FenceRuleSave(value *FenceRule, buffer []byte, context ...TableWriteContext) int64
func FenceRuleSaveBody ¶
func FenceRuleSaveBody(w *TableWriter, value *FenceRule) bool
func FenceRuleSaveBodyFields ¶
func FenceRuleSaveBodyFields(w *TableWriter, value *FenceRule) bool
func FenceRuleSaveBodyFieldsRetain ¶
func FenceRuleSaveBodyFieldsRetain(w *TableRetainWriter, value *FenceRule) bool
func FenceRuleSaveBodyRetain ¶
func FenceRuleSaveBodyRetain(w *TableRetainWriter, value *FenceRule) bool
func FenceRuleSaveMessageBody ¶
func FenceRuleSaveMessageBody(w *TableMessageWriter, value *FenceRule) bool
func FenceRuleSaveRetain ¶
func FenceRuleSaveRetain(value *FenceRule, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func FenceRuleSaveText ¶
func FenceRuleSaveText(value *FenceRule, context ...TableWriteContext) (string, error)
FenceRuleSaveText returns the base64 of FenceRule's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context FenceRuleSave takes.
func FenceRuleToJson ¶
func FenceRuleToJson(value *FenceRule, buffer []byte, allocator ...TableAllocator) int64
func FenceRuleToJsonMeasure ¶
func FenceRuleToJsonMeasure(value *FenceRule, allocator ...TableAllocator) int64
func HarnessConfigRecordCookFrom ¶
func HarnessConfigRecordCookFrom(value *HarnessConfigRecord, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func HarnessConfigRecordCookMeasure ¶
func HarnessConfigRecordCookMeasure(value *HarnessConfigRecord, context ...TableWriteContext) int64
func HarnessConfigRecordCookMeasureReason ¶
func HarnessConfigRecordCookMeasureReason(value *HarnessConfigRecord, context ...TableWriteContext) (int64, error)
func HarnessConfigRecordFromJson ¶
func HarnessConfigRecordFromJson(builder *HarnessConfigRecordBuilder, text []byte, report *TableReport) bool
func HarnessConfigRecordLoadBody ¶
func HarnessConfigRecordLoadBody(r *TableReader, value *HarnessConfigRecord) bool
func HarnessConfigRecordLoadBodyRetain ¶
func HarnessConfigRecordLoadBodyRetain(r *TableRetainReader, value *HarnessConfigRecord) bool
func HarnessConfigRecordLoadBuilder ¶
func HarnessConfigRecordLoadBuilder(b *HarnessConfigRecordBuilder, wire []byte, report *TableReport) bool
func HarnessConfigRecordLoadMessageBody ¶
func HarnessConfigRecordLoadMessageBody(r *TableMessageReader, value *HarnessConfigRecord) bool
func HarnessConfigRecordLoadMessageBodyRetain ¶
func HarnessConfigRecordLoadMessageBodyRetain(r *TableRetainMessageReader, value *HarnessConfigRecord) bool
func HarnessConfigRecordMeasure ¶
func HarnessConfigRecordMeasure(value *HarnessConfigRecord, context ...TableWriteContext) int64
func HarnessConfigRecordMeasureBody ¶
func HarnessConfigRecordMeasureBody(value *HarnessConfigRecord, ids *TableIds) int64
func HarnessConfigRecordMeasureBodyRetain ¶
func HarnessConfigRecordMeasureBodyRetain(value *HarnessConfigRecord, ids *TableRetainIds) int64
func HarnessConfigRecordMeasureReason ¶
func HarnessConfigRecordMeasureReason(value *HarnessConfigRecord, context ...TableWriteContext) (int64, error)
func HarnessConfigRecordMeasureRetain ¶
func HarnessConfigRecordMeasureRetain(value *HarnessConfigRecord, retain *TableRetain, allocator ...TableAllocator) int64
func HarnessConfigRecordOpen ¶
func HarnessConfigRecordOpen(cook *HarnessConfigRecordCook, base unsafe.Pointer, length int64) bool
HarnessConfigRecordOpen is the bool convenience for the typed Open error on the handle.
func HarnessConfigRecordReset ¶
func HarnessConfigRecordReset(value *HarnessConfigRecord)
HarnessConfigRecordReset restores HarnessConfigRecord's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func HarnessConfigRecordSave ¶
func HarnessConfigRecordSave(value *HarnessConfigRecord, buffer []byte, context ...TableWriteContext) int64
func HarnessConfigRecordSaveBody ¶
func HarnessConfigRecordSaveBody(w *TableWriter, value *HarnessConfigRecord) bool
func HarnessConfigRecordSaveBodyFields ¶
func HarnessConfigRecordSaveBodyFields(w *TableWriter, value *HarnessConfigRecord) bool
func HarnessConfigRecordSaveBodyFieldsRetain ¶
func HarnessConfigRecordSaveBodyFieldsRetain(w *TableRetainWriter, value *HarnessConfigRecord) bool
func HarnessConfigRecordSaveBodyRetain ¶
func HarnessConfigRecordSaveBodyRetain(w *TableRetainWriter, value *HarnessConfigRecord) bool
func HarnessConfigRecordSaveMessageBody ¶
func HarnessConfigRecordSaveMessageBody(w *TableMessageWriter, value *HarnessConfigRecord) bool
func HarnessConfigRecordSaveRetain ¶
func HarnessConfigRecordSaveRetain(value *HarnessConfigRecord, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func HarnessConfigRecordSaveText ¶
func HarnessConfigRecordSaveText(value *HarnessConfigRecord, context ...TableWriteContext) (string, error)
HarnessConfigRecordSaveText returns the base64 of HarnessConfigRecord's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context HarnessConfigRecordSave takes.
func HarnessConfigRecordToJson ¶
func HarnessConfigRecordToJson(value *HarnessConfigRecord, buffer []byte, allocator ...TableAllocator) int64
func HarnessConfigRecordToJsonMeasure ¶
func HarnessConfigRecordToJsonMeasure(value *HarnessConfigRecord, allocator ...TableAllocator) int64
func MemberCarryCookFrom ¶
func MemberCarryCookFrom(value *MemberCarry, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func MemberCarryCookMeasure ¶
func MemberCarryCookMeasure(value *MemberCarry, context ...TableWriteContext) int64
func MemberCarryCookMeasureReason ¶
func MemberCarryCookMeasureReason(value *MemberCarry, context ...TableWriteContext) (int64, error)
func MemberCarryFromJson ¶
func MemberCarryFromJson(builder *MemberCarryBuilder, text []byte, report *TableReport) bool
func MemberCarryLoadBody ¶
func MemberCarryLoadBody(r *TableReader, value *MemberCarry) bool
func MemberCarryLoadBodyRetain ¶
func MemberCarryLoadBodyRetain(r *TableRetainReader, value *MemberCarry) bool
func MemberCarryLoadBuilder ¶
func MemberCarryLoadBuilder(b *MemberCarryBuilder, wire []byte, report *TableReport) bool
func MemberCarryLoadMeasure ¶
func MemberCarryLoadMessageBody ¶
func MemberCarryLoadMessageBody(r *TableMessageReader, value *MemberCarry) bool
func MemberCarryLoadMessageBodyRetain ¶
func MemberCarryLoadMessageBodyRetain(r *TableRetainMessageReader, value *MemberCarry) bool
func MemberCarryMeasure ¶
func MemberCarryMeasure(value *MemberCarry, context ...TableWriteContext) int64
func MemberCarryMeasureBody ¶
func MemberCarryMeasureBody(value *MemberCarry, ids *TableIds) int64
func MemberCarryMeasureBodyRetain ¶
func MemberCarryMeasureBodyRetain(value *MemberCarry, ids *TableRetainIds) int64
func MemberCarryMeasureReason ¶
func MemberCarryMeasureReason(value *MemberCarry, context ...TableWriteContext) (int64, error)
func MemberCarryMeasureRetain ¶
func MemberCarryMeasureRetain(value *MemberCarry, retain *TableRetain, allocator ...TableAllocator) int64
func MemberCarryOpen ¶
func MemberCarryOpen(cook *MemberCarryCook, base unsafe.Pointer, length int64) bool
MemberCarryOpen is the bool convenience for the typed Open error on the handle.
func MemberCarryReset ¶
func MemberCarryReset(value *MemberCarry)
MemberCarryReset restores MemberCarry's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func MemberCarrySave ¶
func MemberCarrySave(value *MemberCarry, buffer []byte, context ...TableWriteContext) int64
func MemberCarrySaveBody ¶
func MemberCarrySaveBody(w *TableWriter, value *MemberCarry) bool
func MemberCarrySaveBodyFields ¶
func MemberCarrySaveBodyFields(w *TableWriter, value *MemberCarry) bool
func MemberCarrySaveBodyFieldsRetain ¶
func MemberCarrySaveBodyFieldsRetain(w *TableRetainWriter, value *MemberCarry) bool
func MemberCarrySaveBodyRetain ¶
func MemberCarrySaveBodyRetain(w *TableRetainWriter, value *MemberCarry) bool
func MemberCarrySaveMessageBody ¶
func MemberCarrySaveMessageBody(w *TableMessageWriter, value *MemberCarry) bool
func MemberCarrySaveRetain ¶
func MemberCarrySaveRetain(value *MemberCarry, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func MemberCarrySaveText ¶
func MemberCarrySaveText(value *MemberCarry, context ...TableWriteContext) (string, error)
MemberCarrySaveText returns the base64 of MemberCarry's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context MemberCarrySave takes.
func MemberCarryToJson ¶
func MemberCarryToJson(value *MemberCarry, buffer []byte, allocator ...TableAllocator) int64
func MemberCarryToJsonMeasure ¶
func MemberCarryToJsonMeasure(value *MemberCarry, allocator ...TableAllocator) int64
func TableBytesEmplace ¶
func TableBytesEmplace(worker *TableWorker, slot *TableRef, length int64) []byte
func TableStringEmplace ¶
func TableStringEmplace(worker *TableWorker, slot *TableRef, text []byte) []byte
func WorkerRecordCookFrom ¶
func WorkerRecordCookFrom(value *WorkerRecord, buffer []byte, order TableByteOrder, context ...TableWriteContext) bool
func WorkerRecordCookMeasure ¶
func WorkerRecordCookMeasure(value *WorkerRecord, context ...TableWriteContext) int64
func WorkerRecordCookMeasureReason ¶
func WorkerRecordCookMeasureReason(value *WorkerRecord, context ...TableWriteContext) (int64, error)
func WorkerRecordFromJson ¶
func WorkerRecordFromJson(builder *WorkerRecordBuilder, text []byte, report *TableReport) bool
func WorkerRecordHarnessArgsErase ¶
func WorkerRecordHarnessArgsErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
func WorkerRecordInputLimitPhrasesErase ¶
func WorkerRecordInputLimitPhrasesErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
func WorkerRecordLoadBody ¶
func WorkerRecordLoadBody(r *TableReader, value *WorkerRecord) bool
func WorkerRecordLoadBodyRetain ¶
func WorkerRecordLoadBodyRetain(r *TableRetainReader, value *WorkerRecord) bool
func WorkerRecordLoadBuilder ¶
func WorkerRecordLoadBuilder(b *WorkerRecordBuilder, wire []byte, report *TableReport) bool
func WorkerRecordLoadMeasure ¶
func WorkerRecordLoadMessageBody ¶
func WorkerRecordLoadMessageBody(r *TableMessageReader, value *WorkerRecord) bool
func WorkerRecordLoadMessageBodyRetain ¶
func WorkerRecordLoadMessageBodyRetain(r *TableRetainMessageReader, value *WorkerRecord) bool
func WorkerRecordMeasure ¶
func WorkerRecordMeasure(value *WorkerRecord, context ...TableWriteContext) int64
func WorkerRecordMeasureBody ¶
func WorkerRecordMeasureBody(value *WorkerRecord, ids *TableIds) int64
func WorkerRecordMeasureBodyRetain ¶
func WorkerRecordMeasureBodyRetain(value *WorkerRecord, ids *TableRetainIds) int64
func WorkerRecordMeasureReason ¶
func WorkerRecordMeasureReason(value *WorkerRecord, context ...TableWriteContext) (int64, error)
func WorkerRecordMeasureRetain ¶
func WorkerRecordMeasureRetain(value *WorkerRecord, retain *TableRetain, allocator ...TableAllocator) int64
func WorkerRecordOpen ¶
func WorkerRecordOpen(cook *WorkerRecordCook, base unsafe.Pointer, length int64) bool
WorkerRecordOpen is the bool convenience for the typed Open error on the handle.
func WorkerRecordReadRootsErase ¶
func WorkerRecordReadRootsErase(arena *TableArena, holder *TableList[EntryRow], element *EntryRow) bool
func WorkerRecordReset ¶
func WorkerRecordReset(value *WorkerRecord)
WorkerRecordReset restores WorkerRecord's declared defaults in place, reusing the storage the value already holds. The reader calls it before overlaying.
func WorkerRecordSave ¶
func WorkerRecordSave(value *WorkerRecord, buffer []byte, context ...TableWriteContext) int64
func WorkerRecordSaveBody ¶
func WorkerRecordSaveBody(w *TableWriter, value *WorkerRecord) bool
func WorkerRecordSaveBodyFields ¶
func WorkerRecordSaveBodyFields(w *TableWriter, value *WorkerRecord) bool
func WorkerRecordSaveBodyFieldsRetain ¶
func WorkerRecordSaveBodyFieldsRetain(w *TableRetainWriter, value *WorkerRecord) bool
func WorkerRecordSaveBodyRetain ¶
func WorkerRecordSaveBodyRetain(w *TableRetainWriter, value *WorkerRecord) bool
func WorkerRecordSaveMessageBody ¶
func WorkerRecordSaveMessageBody(w *TableMessageWriter, value *WorkerRecord) bool
func WorkerRecordSaveRetain ¶
func WorkerRecordSaveRetain(value *WorkerRecord, retain *TableRetain, buffer []byte, report *TableReport, allocator ...TableAllocator) int64
func WorkerRecordSaveText ¶
func WorkerRecordSaveText(value *WorkerRecord, context ...TableWriteContext) (string, error)
WorkerRecordSaveText returns the base64 of WorkerRecord's binary wire (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8): the whole file, form byte first, so the text keeps the form byte, the framing check and every versioning guarantee and is opaque. It takes the write context WorkerRecordSave takes.
func WorkerRecordToJson ¶
func WorkerRecordToJson(value *WorkerRecord, buffer []byte, allocator ...TableAllocator) int64
func WorkerRecordToJsonMeasure ¶
func WorkerRecordToJsonMeasure(value *WorkerRecord, allocator ...TableAllocator) int64
Types ¶
type DeclaredModel ¶
type DeclaredModel = DeclaredModelRow
func DeclaredModelLoad ¶
func DeclaredModelLoad(region, wire []byte, report *TableReport) *DeclaredModel
func DeclaredModelLoadRetain ¶
func DeclaredModelLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *DeclaredModel
func DeclaredModelLoadText ¶
func DeclaredModelLoadText(text string, report *TableReport) (*DeclaredModel, error)
DeclaredModelLoadText reads one DeclaredModel from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as DeclaredModelReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func DeclaredModelReadStrict ¶
func DeclaredModelReadStrict(wire []byte) (*DeclaredModel, error)
DeclaredModelReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type DeclaredModelBuilder ¶
type DeclaredModelBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*DeclaredModelBuilder) AsConst ¶
func (b *DeclaredModelBuilder) AsConst() *DeclaredModel
func (*DeclaredModelBuilder) GetRoot ¶
func (b *DeclaredModelBuilder) GetRoot() *DeclaredModel
func (*DeclaredModelBuilder) Init ¶
func (b *DeclaredModelBuilder) Init(allocator ...TableAllocator) bool
func (*DeclaredModelBuilder) Lock ¶
func (b *DeclaredModelBuilder) Lock() bool
func (*DeclaredModelBuilder) PackMeasure ¶
func (b *DeclaredModelBuilder) PackMeasure() int64
func (*DeclaredModelBuilder) PackMeasureReason ¶
func (b *DeclaredModelBuilder) PackMeasureReason() (int64, error)
func (*DeclaredModelBuilder) Region ¶
func (b *DeclaredModelBuilder) Region() []byte
func (*DeclaredModelBuilder) Shutdown ¶
func (b *DeclaredModelBuilder) Shutdown()
type DeclaredModelCook ¶
type DeclaredModelCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
DeclaredModelCook is DeclaredModel's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — DeclaredModelOpen, DeclaredModelAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*DeclaredModelCook) Open ¶
func (cook *DeclaredModelCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (DeclaredModelCook) RegionAlignment ¶
func (c DeclaredModelCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (DeclaredModelCook) Root ¶
func (c DeclaredModelCook) Root() *DeclaredModelRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (DeclaredModelCook) RootAlign ¶
func (c DeclaredModelCook) RootAlign() int64
func (DeclaredModelCook) RootSize ¶
func (c DeclaredModelCook) RootSize() int64
func (DeclaredModelCook) Type ¶
func (c DeclaredModelCook) Type() *TableCookInfo
Type is DeclaredModel's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type DeclaredModelRow ¶
type DeclaredModelRow struct {
Provider int64 // *: signed self-relative delta, zero is null (§6.3)
Model int64 // *: signed self-relative delta, zero is null (§6.3)
}
DeclaredModelRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func DeclaredModelAt ¶
func DeclaredModelAt(slot *int64, arena ...*TableArena) *DeclaredModelRow
DeclaredModelAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
type Entry ¶
type Entry = EntryRow
func EntryLoad ¶
func EntryLoad(region, wire []byte, report *TableReport) *Entry
func EntryLoadRetain ¶
func EntryLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *Entry
func EntryLoadText ¶
func EntryLoadText(text string, report *TableReport) (*Entry, error)
EntryLoadText reads one Entry from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as EntryReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func EntryReadStrict ¶
EntryReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type EntryBuilder ¶
type EntryBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*EntryBuilder) AsConst ¶
func (b *EntryBuilder) AsConst() *Entry
func (*EntryBuilder) GetRoot ¶
func (b *EntryBuilder) GetRoot() *Entry
func (*EntryBuilder) Init ¶
func (b *EntryBuilder) Init(allocator ...TableAllocator) bool
func (*EntryBuilder) Lock ¶
func (b *EntryBuilder) Lock() bool
func (*EntryBuilder) PackMeasure ¶
func (b *EntryBuilder) PackMeasure() int64
func (*EntryBuilder) PackMeasureReason ¶
func (b *EntryBuilder) PackMeasureReason() (int64, error)
func (*EntryBuilder) Region ¶
func (b *EntryBuilder) Region() []byte
func (*EntryBuilder) Shutdown ¶
func (b *EntryBuilder) Shutdown()
type EntryCook ¶
type EntryCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
EntryCook is Entry's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — EntryOpen, EntryAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*EntryCook) Open ¶
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (EntryCook) RegionAlignment ¶
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (EntryCook) Root ¶
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (EntryCook) Type ¶
func (c EntryCook) Type() *TableCookInfo
Type is Entry's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type EntryRow ¶
type EntryRow struct {
Value int64 // *: signed self-relative delta, zero is null (§6.3)
}
EntryRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func EntryAt ¶
func EntryAt(slot *int64, arena ...*TableArena) *EntryRow
EntryAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
func FenceConfigReadsAdd ¶
func FenceConfigReadsAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
func WorkerRecordHarnessArgsAdd ¶
func WorkerRecordHarnessArgsAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
func WorkerRecordInputLimitPhrasesAdd ¶
func WorkerRecordInputLimitPhrasesAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
func WorkerRecordReadRootsAdd ¶
func WorkerRecordReadRootsAdd(worker *TableWorker, holder *TableList[EntryRow]) *EntryRow
type ExitRecord ¶
type ExitRecord = ExitRecordRow
func ExitRecordLoad ¶
func ExitRecordLoad(region, wire []byte, report *TableReport) *ExitRecord
func ExitRecordLoadRetain ¶
func ExitRecordLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *ExitRecord
func ExitRecordLoadText ¶
func ExitRecordLoadText(text string, report *TableReport) (*ExitRecord, error)
ExitRecordLoadText reads one ExitRecord from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as ExitRecordReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func ExitRecordReadStrict ¶
func ExitRecordReadStrict(wire []byte) (*ExitRecord, error)
ExitRecordReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type ExitRecordBuilder ¶
type ExitRecordBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*ExitRecordBuilder) AsConst ¶
func (b *ExitRecordBuilder) AsConst() *ExitRecord
func (*ExitRecordBuilder) GetRoot ¶
func (b *ExitRecordBuilder) GetRoot() *ExitRecord
func (*ExitRecordBuilder) Init ¶
func (b *ExitRecordBuilder) Init(allocator ...TableAllocator) bool
func (*ExitRecordBuilder) Lock ¶
func (b *ExitRecordBuilder) Lock() bool
func (*ExitRecordBuilder) PackMeasure ¶
func (b *ExitRecordBuilder) PackMeasure() int64
func (*ExitRecordBuilder) PackMeasureReason ¶
func (b *ExitRecordBuilder) PackMeasureReason() (int64, error)
func (*ExitRecordBuilder) Region ¶
func (b *ExitRecordBuilder) Region() []byte
func (*ExitRecordBuilder) Shutdown ¶
func (b *ExitRecordBuilder) Shutdown()
type ExitRecordCook ¶
type ExitRecordCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
ExitRecordCook is ExitRecord's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — ExitRecordOpen, ExitRecordAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*ExitRecordCook) Open ¶
func (cook *ExitRecordCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (ExitRecordCook) RegionAlignment ¶
func (c ExitRecordCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (ExitRecordCook) Root ¶
func (c ExitRecordCook) Root() *ExitRecordRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (ExitRecordCook) RootAlign ¶
func (c ExitRecordCook) RootAlign() int64
func (ExitRecordCook) RootSize ¶
func (c ExitRecordCook) RootSize() int64
func (ExitRecordCook) Type ¶
func (c ExitRecordCook) Type() *TableCookInfo
Type is ExitRecord's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type ExitRecordRow ¶
type ExitRecordRow struct {
Rc int64
Signal int64 // *: signed self-relative delta, zero is null (§6.3)
Ended int64 // *: signed self-relative delta, zero is null (§6.3)
Survivors int64
Nonce int64 // *: signed self-relative delta, zero is null (§6.3)
Attest int64 // *: signed self-relative delta, zero is null (§6.3)
End int64 // *: signed self-relative delta, zero is null (§6.3)
Spent int64
Observed bool
Partial bool
Reason int64 // *: signed self-relative delta, zero is null (§6.3)
// contains filtered or unexported fields
}
ExitRecordRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func ExitRecordAt ¶
func ExitRecordAt(slot *int64, arena ...*TableArena) *ExitRecordRow
ExitRecordAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
type FenceConfig ¶
type FenceConfig = FenceConfigRow
func FenceConfigLoad ¶
func FenceConfigLoad(region, wire []byte, report *TableReport) *FenceConfig
func FenceConfigLoadRetain ¶
func FenceConfigLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *FenceConfig
func FenceConfigLoadText ¶
func FenceConfigLoadText(text string, report *TableReport) (*FenceConfig, error)
FenceConfigLoadText reads one FenceConfig from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as FenceConfigReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func FenceConfigReadStrict ¶
func FenceConfigReadStrict(wire []byte) (*FenceConfig, error)
FenceConfigReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type FenceConfigBuilder ¶
type FenceConfigBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*FenceConfigBuilder) AsConst ¶
func (b *FenceConfigBuilder) AsConst() *FenceConfig
func (*FenceConfigBuilder) GetRoot ¶
func (b *FenceConfigBuilder) GetRoot() *FenceConfig
func (*FenceConfigBuilder) Init ¶
func (b *FenceConfigBuilder) Init(allocator ...TableAllocator) bool
func (*FenceConfigBuilder) Lock ¶
func (b *FenceConfigBuilder) Lock() bool
func (*FenceConfigBuilder) PackMeasure ¶
func (b *FenceConfigBuilder) PackMeasure() int64
func (*FenceConfigBuilder) PackMeasureReason ¶
func (b *FenceConfigBuilder) PackMeasureReason() (int64, error)
func (*FenceConfigBuilder) Region ¶
func (b *FenceConfigBuilder) Region() []byte
func (*FenceConfigBuilder) Shutdown ¶
func (b *FenceConfigBuilder) Shutdown()
type FenceConfigCook ¶
type FenceConfigCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
FenceConfigCook is FenceConfig's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — FenceConfigOpen, FenceConfigAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*FenceConfigCook) Open ¶
func (cook *FenceConfigCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (FenceConfigCook) RegionAlignment ¶
func (c FenceConfigCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (FenceConfigCook) Root ¶
func (c FenceConfigCook) Root() *FenceConfigRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (FenceConfigCook) RootAlign ¶
func (c FenceConfigCook) RootAlign() int64
func (FenceConfigCook) RootSize ¶
func (c FenceConfigCook) RootSize() int64
func (FenceConfigCook) Type ¶
func (c FenceConfigCook) Type() *TableCookInfo
Type is FenceConfig's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type FenceConfigRow ¶
type FenceConfigRow struct {
JobDir int64 // *: signed self-relative delta, zero is null (§6.3)
Reads TableList[EntryRow]
Rules TableList[FenceRuleRow]
Webfetch uint8
// contains filtered or unexported fields
}
FenceConfigRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func FenceConfigAt ¶
func FenceConfigAt(slot *int64, arena ...*TableArena) *FenceConfigRow
FenceConfigAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
type FenceRule ¶
type FenceRule = FenceRuleRow
func FenceRuleLoad ¶
func FenceRuleLoad(region, wire []byte, report *TableReport) *FenceRule
func FenceRuleLoadRetain ¶
func FenceRuleLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *FenceRule
func FenceRuleLoadText ¶
func FenceRuleLoadText(text string, report *TableReport) (*FenceRule, error)
FenceRuleLoadText reads one FenceRule from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as FenceRuleReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func FenceRuleReadStrict ¶
FenceRuleReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type FenceRuleBuilder ¶
type FenceRuleBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*FenceRuleBuilder) AsConst ¶
func (b *FenceRuleBuilder) AsConst() *FenceRule
func (*FenceRuleBuilder) GetRoot ¶
func (b *FenceRuleBuilder) GetRoot() *FenceRule
func (*FenceRuleBuilder) Init ¶
func (b *FenceRuleBuilder) Init(allocator ...TableAllocator) bool
func (*FenceRuleBuilder) Lock ¶
func (b *FenceRuleBuilder) Lock() bool
func (*FenceRuleBuilder) PackMeasure ¶
func (b *FenceRuleBuilder) PackMeasure() int64
func (*FenceRuleBuilder) PackMeasureReason ¶
func (b *FenceRuleBuilder) PackMeasureReason() (int64, error)
func (*FenceRuleBuilder) Region ¶
func (b *FenceRuleBuilder) Region() []byte
func (*FenceRuleBuilder) Shutdown ¶
func (b *FenceRuleBuilder) Shutdown()
type FenceRuleCook ¶
type FenceRuleCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
FenceRuleCook is FenceRule's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — FenceRuleOpen, FenceRuleAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*FenceRuleCook) Open ¶
func (cook *FenceRuleCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (FenceRuleCook) RegionAlignment ¶
func (c FenceRuleCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (FenceRuleCook) Root ¶
func (c FenceRuleCook) Root() *FenceRuleRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (FenceRuleCook) RootAlign ¶
func (c FenceRuleCook) RootAlign() int64
func (FenceRuleCook) RootSize ¶
func (c FenceRuleCook) RootSize() int64
func (FenceRuleCook) Type ¶
func (c FenceRuleCook) Type() *TableCookInfo
Type is FenceRule's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type FenceRuleRow ¶
type FenceRuleRow struct {
Pattern int64 // *: signed self-relative delta, zero is null (§6.3)
Action uint8
// contains filtered or unexported fields
}
FenceRuleRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func FenceConfigRulesAdd ¶
func FenceConfigRulesAdd(worker *TableWorker, holder *TableList[FenceRuleRow]) *FenceRuleRow
func FenceRuleAt ¶
func FenceRuleAt(slot *int64, arena ...*TableArena) *FenceRuleRow
FenceRuleAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
type HarnessConfigRecord ¶
type HarnessConfigRecord = HarnessConfigRecordRow
func HarnessConfigRecordLoad ¶
func HarnessConfigRecordLoad(region, wire []byte, report *TableReport) *HarnessConfigRecord
func HarnessConfigRecordLoadRetain ¶
func HarnessConfigRecordLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *HarnessConfigRecord
func HarnessConfigRecordLoadText ¶
func HarnessConfigRecordLoadText(text string, report *TableReport) (*HarnessConfigRecord, error)
HarnessConfigRecordLoadText reads one HarnessConfigRecord from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as HarnessConfigRecordReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func HarnessConfigRecordReadStrict ¶
func HarnessConfigRecordReadStrict(wire []byte) (*HarnessConfigRecord, error)
HarnessConfigRecordReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type HarnessConfigRecordBuilder ¶
type HarnessConfigRecordBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*HarnessConfigRecordBuilder) AsConst ¶
func (b *HarnessConfigRecordBuilder) AsConst() *HarnessConfigRecord
func (*HarnessConfigRecordBuilder) GetRoot ¶
func (b *HarnessConfigRecordBuilder) GetRoot() *HarnessConfigRecord
func (*HarnessConfigRecordBuilder) Init ¶
func (b *HarnessConfigRecordBuilder) Init(allocator ...TableAllocator) bool
func (*HarnessConfigRecordBuilder) Lock ¶
func (b *HarnessConfigRecordBuilder) Lock() bool
func (*HarnessConfigRecordBuilder) PackMeasure ¶
func (b *HarnessConfigRecordBuilder) PackMeasure() int64
func (*HarnessConfigRecordBuilder) PackMeasureReason ¶
func (b *HarnessConfigRecordBuilder) PackMeasureReason() (int64, error)
func (*HarnessConfigRecordBuilder) Region ¶
func (b *HarnessConfigRecordBuilder) Region() []byte
func (*HarnessConfigRecordBuilder) Shutdown ¶
func (b *HarnessConfigRecordBuilder) Shutdown()
type HarnessConfigRecordCook ¶
type HarnessConfigRecordCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
HarnessConfigRecordCook is HarnessConfigRecord's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — HarnessConfigRecordOpen, HarnessConfigRecordAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*HarnessConfigRecordCook) Open ¶
func (cook *HarnessConfigRecordCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (HarnessConfigRecordCook) RegionAlignment ¶
func (c HarnessConfigRecordCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (HarnessConfigRecordCook) Root ¶
func (c HarnessConfigRecordCook) Root() *HarnessConfigRecordRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (HarnessConfigRecordCook) RootAlign ¶
func (c HarnessConfigRecordCook) RootAlign() int64
func (HarnessConfigRecordCook) RootSize ¶
func (c HarnessConfigRecordCook) RootSize() int64
func (HarnessConfigRecordCook) Type ¶
func (c HarnessConfigRecordCook) Type() *TableCookInfo
Type is HarnessConfigRecord's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type HarnessConfigRecordRow ¶
type HarnessConfigRecordRow struct {
Provider int64 // *: signed self-relative delta, zero is null (§6.3)
Model int64 // *: signed self-relative delta, zero is null (§6.3)
EnvVar int64 // *: signed self-relative delta, zero is null (§6.3)
BaseUrl int64 // *: signed self-relative delta, zero is null (§6.3)
}
HarnessConfigRecordRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func HarnessConfigRecordAt ¶
func HarnessConfigRecordAt(slot *int64, arena ...*TableArena) *HarnessConfigRecordRow
HarnessConfigRecordAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
type MemberCarry ¶
type MemberCarry = MemberCarryRow
func MemberCarryLoad ¶
func MemberCarryLoad(region, wire []byte, report *TableReport) *MemberCarry
func MemberCarryLoadRetain ¶
func MemberCarryLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *MemberCarry
func MemberCarryLoadText ¶
func MemberCarryLoadText(text string, report *TableReport) (*MemberCarry, error)
MemberCarryLoadText reads one MemberCarry from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as MemberCarryReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func MemberCarryReadStrict ¶
func MemberCarryReadStrict(wire []byte) (*MemberCarry, error)
MemberCarryReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type MemberCarryBuilder ¶
type MemberCarryBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*MemberCarryBuilder) AsConst ¶
func (b *MemberCarryBuilder) AsConst() *MemberCarry
func (*MemberCarryBuilder) GetRoot ¶
func (b *MemberCarryBuilder) GetRoot() *MemberCarry
func (*MemberCarryBuilder) Init ¶
func (b *MemberCarryBuilder) Init(allocator ...TableAllocator) bool
func (*MemberCarryBuilder) Lock ¶
func (b *MemberCarryBuilder) Lock() bool
func (*MemberCarryBuilder) PackMeasure ¶
func (b *MemberCarryBuilder) PackMeasure() int64
func (*MemberCarryBuilder) PackMeasureReason ¶
func (b *MemberCarryBuilder) PackMeasureReason() (int64, error)
func (*MemberCarryBuilder) Region ¶
func (b *MemberCarryBuilder) Region() []byte
func (*MemberCarryBuilder) Shutdown ¶
func (b *MemberCarryBuilder) Shutdown()
type MemberCarryCook ¶
type MemberCarryCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
MemberCarryCook is MemberCarry's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — MemberCarryOpen, MemberCarryAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*MemberCarryCook) Open ¶
func (cook *MemberCarryCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (MemberCarryCook) RegionAlignment ¶
func (c MemberCarryCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (MemberCarryCook) Root ¶
func (c MemberCarryCook) Root() *MemberCarryRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (MemberCarryCook) RootAlign ¶
func (c MemberCarryCook) RootAlign() int64
func (MemberCarryCook) RootSize ¶
func (c MemberCarryCook) RootSize() int64
func (MemberCarryCook) Type ¶
func (c MemberCarryCook) Type() *TableCookInfo
Type is MemberCarry's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type MemberCarryRow ¶
type MemberCarryRow struct {
Card int64 // *: signed self-relative delta, zero is null (§6.3)
Attempt int64
Head int64 // *: signed self-relative delta, zero is null (§6.3)
Branch int64 // *: signed self-relative delta, zero is null (§6.3)
}
MemberCarryRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func MemberCarryAt ¶
func MemberCarryAt(slot *int64, arena ...*TableArena) *MemberCarryRow
MemberCarryAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.
type TableAllocator ¶
TableAllocator owns authoring and temporary writer storage. Both callbacks are required together; an empty pair uses Go-owned storage. Alloc supplies zeroed bytes aligned to tableRegionAlign and may return more than requested. Free always receives the original slice, with its original length and base. Load and LoadMeasure use caller buffers and never call this pair.
type TableArena ¶
type TableArena struct {
Allocator TableAllocator
Locked bool
// contains filtered or unexported fields
}
func (*TableArena) Init ¶
func (a *TableArena) Init(allocator ...TableAllocator) bool
func (*TableArena) Shutdown ¶
func (a *TableArena) Shutdown()
type TableBitReader ¶
func (*TableBitReader) Align ¶
func (r *TableBitReader) Align() bool
func (*TableBitReader) Skip ¶
func (r *TableBitReader) Skip(n int64) bool
type TableBitWriter ¶
TableBitWriter uses the packet wire's low-bit-first order. Measuring walks the identical stream, including alignment, without touching a buffer.
func (*TableBitWriter) Align ¶
func (w *TableBitWriter) Align()
func (*TableBitWriter) Put ¶
func (w *TableBitWriter) Put(value uint64, n int64)
func (*TableBitWriter) Raw ¶
func (w *TableBitWriter) Raw(data []byte)
type TableBlob ¶
Blob ABI follows the established tool and C++ byte contract: u32 length, u32 zero. SPEC-TABLES §7.2 currently labels this u64; the big-endian fixtures distinguish them.
func TableBlobAt ¶
func TableBlobAt(slot *TableRef, arena ...*TableArena) *TableBlob
type TableBuildVersionMismatch ¶
type TableBuildVersionMismatch struct{ Peer, Own uint64 }
TableBuildVersionMismatch is the typed error a strict announcement refusal reports (mas-bandwidth/schema docs/SPEC-TABLES.md §3.3): the peer's build version and the reader's own, each a 64-bit number.
func (TableBuildVersionMismatch) Error ¶
func (m TableBuildVersionMismatch) Error() string
type TableByteOrder ¶
type TableByteOrder uint8
TableByteOrder selects the target order, independently of the writing host.
const ( TableByteOrderLittle TableByteOrder = 1 TableByteOrderBig TableByteOrder = 2 )
type TableBytesView ¶
TableBytesView borrows its backing region or arena. Keep that storage alive and do not free, reuse, or shut it down while using the view.
func TableBytesAt ¶
func TableBytesAt(slot *TableRef, arena ...*TableArena) TableBytesView
type TableCookFieldInfo ¶
type TableCookFieldInfo struct {
Name string
Offset int32 // the field's offset in the record this descriptor describes
Size int32 // its whole storage there, companions included
ElemSize int32 // one element's size, for an array; the field's own otherwise
IsArray bool
ArrayBound int32 // the DECLARED bound: a counted array's N, a string's or bytes' length
IsPointer bool // an eight-byte SIGNED SELF-RELATIVE delta slot (§6.3)
CountOffset int32 // the count companion's offset, or -1 when the field has none
PresentOffset int32 // an optional's presence bool, or -1
Storage TableCookStorage
// Record is the record this field NAMES, behind a function so the table
// stays constructible in any order — Go refuses an initialisation cycle
// among package-level variables, and the DESCRIPTOR graph is cyclic by
// design: a record's field column can name its own record. A cooked REGION
// is never cyclic; schema cook refuses one by name (§3.1).
// nil when the field is a scalar. Following it is how a walker DESCENDS: a
// pointer's target, a by-value nesting, and an array's element are all
// reached through this one column.
Record func() *TableCookInfo
}
TableCookFieldInfo is one record's field as DATA — the mechanism behind a reflective read of a cooked region, and what a gate walks a whole graph with. A field carries the facts a region actually has: where it sits, how big it is, whether it is a POINTER EDGE, the bound its COUNT COMPANION is checked against, and the record it names.
type TableCookInfo ¶
type TableCookInfo struct {
Name string
Size int32
Align int32
NumFields int32
Fields []TableCookFieldInfo
}
TableCookInfo is one cooked record's layout as DATA.
type TableCookStorage ¶
type TableCookStorage uint8
TableCookStorage is what a cooked SLOT holds, which is not always what the WIRE carries: an ENUM slot holds the ORDINAL at the enum's own derived storage width (mas-bandwidth/schema docs/SPEC-TABLES.md §7.2), where the wire rides the variant-name hash. A walker reads a slot with the width ElemSize gives and the signedness this names.
Its members are FLAT package-level constants, which is what Go already does with every enum a schema declares (SPEC.md §6.1's Go column) — so all eight spellings are claimed in mas-bandwidth/schema internal/tablenames, exactly as a declared enum's variants are claimed by the checker. C# spells the same vocabulary as one scoped enum and claims one name; the port does not get to have it both ways, and the flat form is the one a Go consumer expects to write.
const ( TableCookStorageRecord TableCookStorage = iota // a nested record, or an array of them: descend through it TableCookStorageReference // an eight-byte SIGNED SELF-RELATIVE delta slot (§6.3) TableCookStorageBool TableCookStorageSigned TableCookStorageUnsigned // an unsigned integer, an enum ordinal, a bits(N), a flags mask TableCookStorageFloat TableCookStorageString // char[N + 1] with an int32 used length beside it TableCookStorageBytes // uint8[N] with an int32 used length beside it )
type TableExtentCarve ¶
type TableExtentCarve struct {
Base unsafe.Pointer
At, Limit int64
Worker *TableWorker
Refused bool
}
type TableFieldInfo ¶
type TableFieldInfo struct {
CookOffset, CookElemSize, CookCountOffset, CookPresentOffset uint32
List, Map bool // unbounded by-value containers
ElemAlign uint32
Name string // schema field name, e.g. "health"
Json string // the TEXT form's key: the json = "key" attribute, else Name (§16.3)
TypeName string // schema element type, e.g. "float32", "Grade"
DeclaredTypeName string // complete schema spelling including arrays, bounds and pointers
Id uint64 // table-wire field id (name hash; the was alias's hash after a rename)
Pointer bool
TargetId uint64
Kind uint8 // table-wire kind; for arrays/strings/bytes, the ELEMENT kind
IsArray bool // fixed or counted array (bytes included)
Counted bool // a <Name>Count/<Name>Length int32 companion exists
Optional bool // a ?T field: a <Name>Present bool decides whether it rides
ArrayBound int32 // array capacity / string max length; 0 for plain scalars
Offset uint32 // unsafe.Offsetof the storage member
ElemSize uint32 // unsafe.Sizeof the member (element size for arrays)
CountOffset uint32 // unsafe.Offsetof the count/length companion, or 0xffffffff
PresentOffset uint32 // unsafe.Offsetof the Present companion, or 0xffffffff
FracBits uint8 // fixed-point binary scale
WideRange bool
WideMin, WideMax [2]uint64 // exact two-complement raw bounds, low lane first
HasRange bool // a declared [min, max] (int or float)
RangeMin float64 // NOTE: int64 ranges beyond 2^53 lose precision here
RangeMax float64
// EnumMax bounds the vocabulary: enums, the highest valid value (None = 0
// is always valid); unions, the arm count (tag range [0, EnumMax]); a
// FLAGS field, the highest declared BIT INDEX; else -1.
EnumMax int64
// EnumName is the vocabulary's names, indexed the way EnumMax bounds: an
// enum's value -> name, a union's tag -> arm name, a FLAGS field's bit
// index -> variant name. nil for every other kind.
EnumName func(value uint64) string
// VariantId is the TABLE-WIRE id of one variant (mas-bandwidth/schema docs/SPEC-TABLES.md §5): for
// an enum, the hash of the variant's name; for a union, the hash of the
// arm's name. Hash zero is an ordinary id; ordinal zero is None. nil
// for every other kind — a FLAGS field's variants have no per-variant wire
// id (§4), so a nil here beside a non-nil EnumName is what says "flags".
VariantId func(value uint64) uint64
// an ENUM-KEYED array (mas-bandwidth/schema docs/SPEC-TABLES.md §2.4, §8): the array has one slot
// per variant of KeyTypeName, indexed by the variant's value, and its
// slots ride under variant ids rather than positions. KeyName and KeyId
// are the key's vocabulary — walk [0, ArrayBound) to print slots by name.
// All three are nil/"" on every other field.
KeyTypeName string
KeyName func(value uint64) string
KeyId func(value uint64) uint64
// Arms is a union field's shape: the tag and the arms indexed by it, behind
// a function so a descriptor graph needs no initialization order. nil for
// every other kind.
Arms func() *TableUnionInfo
Guard string // branch guard, e.g. "at_rest" or "!at_rest"; "" if unguarded
// Table is the nested table's descriptor, or nil. Held as a factory rather
// than a value so a descriptor graph needs no initialization order: Go
// refuses an initialization cycle across package-level variables, and a
// table may name one declared later.
Table func() *TableTypeInfo
// what a PERSON wrote about the field (mas-bandwidth/schema docs/SPEC-TABLES.md §8.1): the ///
// block above it, verbatim (SPEC §4.1). It is TableDocNone when there is
// none, never nil. Its tags (SPEC §4.2) follow in declared order, and an
// untagged field is 0 beside a nil list. Static package data, allocating
// nothing.
Doc string
NumTags int32
Tags []string
}
TableFieldInfo is one field's descriptor.
type TableFixedDst ¶
type TableFixedEntry ¶
type TableFixedEntry struct {
Src, Dst, Size, Aux, Guard uint32
// Arg IS THE GUARD'S ORDINAL AT FULL WIDTH (mas-bandwidth/schema docs/FIXED-FORM-ALGORITHM.md
// §4.1: arg : u64, "no byte lane anywhere"): a union past 255 arms or an
// enum past 65535 variants holds its ordinal whole in this lane, and the
// compare is made against the 64-bit tag load, never a truncation of it.
Arg uint64
// Guard2 / Arg2 / ArgW2 ARE THE OUTER TAG AN ARM INSIDE AN ARM ALSO ANSWERS
// TO (mas-bandwidth/schema docs/FIXED-FORM-ALGORITHM.md §4.1): the entry runs only when BOTH tags
// hold their ordinal. ArgW2 of zero is "no outer tag", so a plan that never
// nests a union leaves the lane unset and the read is unchanged.
Guard2 uint32
Arg2 uint64
// GuardIndex / GuardCount ARE THE GUARD CHAIN (mas-bandwidth/schema docs/FIXED-FORM-ALGORITHM.md
// §4.1): offset+count into a pool of (guard, arg, argw) links, OUTERMOST
// FIRST. GuardIndex is a BYTE OFFSET from the plan's own base, where the pool
// is laid behind the entries the way the ordinal remap tables are, so the
// plan stays one slice and the read loop one signature. Every guarded entry
// carries its whole chain; the two lanes above stay its innermost two, the
// special case, so the loop walks the pool only for a chain past two. The
// only bound on a chain is the layout's 64 (tableFixedMaxDepth).
GuardIndex, GuardCount uint32
Op, ArgW, DstSize, Sign, Meta, ArgW2 uint8
}
Arg is the guard's arm ordinal: tableFixedRun compares src[Guard] against it. Meta is a text entry's flavour (tableFixedTextUtf8/Wide/Bytes). They shared one lane until reference-fix 12; compiling a string under a union arm overwrote the guard with the flavour and the read skipped the string. tableFixedEntryBytes is the FILE layout entry (id+kind+size+children), not this in-memory plan row — Meta does not ride the wire. ArgW IS THE GUARD'S WIDTH IN BYTES (§5.2 THE GUARD'S WIDTH): a union tag is one, two, four or eight bytes, clamped 1..8, and 0 reads as 1. The guard is tested at that FULL width and never at its first byte — a foreign two-byte tag 0x0101 is not arm 1. Arg is the arm ordinal and carries NO BYTE LANE (§5.8 row 5): a 256-arm union's ordinal does not fit a byte.
type TableFixedGuardLink ¶
TableFixedGuardLink is ONE LINK of a guard chain (mas-bandwidth/schema docs/FIXED-FORM-ALGORITHM.md §4.1): the offset of the tag it reads, the ordinal the tag must hold, and the width it is compared at. A chain is a CONJUNCTION — every link must hold.
type TableFixedKnownLayout ¶
TableFixedKnownLayout is one locked layout: the wire hash a file is matched on, the layout bytes verbatim with its byte length BESIDE the pointer, and the RECORD SIZE taken from the lock and never from the file. The members are §5.9 #19's: hash, layout, layout_bytes, record_bytes, in that order.
type TableIds ¶
type TableIds struct {
Numbering *TableNumbering
Values [tableIdCapacity]uint64
Count int
Overflow bool
// contains filtered or unexported fields
}
TableIds interns the writer's ids in first-use order. Bucket links are one-based so its zero value is ready to use, including for hash zero.
func (*TableIds) RefAt ¶
RefAt is Ref for a compile-time-constant id. The ordinal is that id's index in TableWireIds. A hit is one load and one compare; first-use order is still append order. Truncate clears the ordinal in O(popped) so a speculative intern does not leak into the next walk. An ordinal outside the slot range falls back to Ref; it does not index slot.
type TableList ¶
func (*TableList[T]) At ¶
func (l *TableList[T]) At(index int32, arena ...*TableArena) *T
type TableMap ¶
func (*TableMap[T]) At ¶
func (m *TableMap[T]) At(index int32, arena ...*TableArena) *T
type TableMapIndex ¶
type TableMapIndex struct {
// contains filtered or unexported fields
}
type TableMessageEntry ¶
type TableMessageEntry struct {
Id uint64
Shape, Element TableMessageShape
}
type TableMessageReader ¶
type TableMessageReader struct {
Nodes TableNodeMap
Bits TableBitReader
Vocabulary *TableVocabulary
Report TableReport
IndexBits int64
}
type TableMessageShape ¶
type TableMessageWriter ¶
type TableMessageWriter struct {
TableBitWriter
IndexBits int64
Clamped int32
Numbering *TableNumbering
// contains filtered or unexported fields
}
type TableMissingRequired ¶
type TableMissingRequired struct{ Fields string }
TableMissingRequired is the typed error a strict read reports for a record that lacks a | required field (mas-bandwidth/schema docs/SPEC-TABLES.md §2.3): Fields names the missing fields, comma-separated in declaration order, at whatever depth of the record they were missing, and Error() is the report's own reason.
func (TableMissingRequired) Error ¶
func (m TableMissingRequired) Error() string
type TableNodeDirEntry ¶
type TableNodeDirEntry struct{ Offset, TypeId uint64 }
type TableNodeMap ¶
type TableNodeMap struct {
Carve TableExtentCarve
Base unsafe.Pointer
Entries []TableNodeDirEntry
Good bool
Arena bool
}
func (TableNodeMap) Resolve ¶
func (m TableNodeMap) Resolve(slot *TableRef, index, target uint64, r *TableReport)
type TableNumbering ¶
type TableNumbering struct {
// contains filtered or unexported fields
}
The root and arena keep the source storage live while pointer-free backing allocations hold the index and entries. Temporary storage is released by caller.
func (*TableNumbering) Release ¶
func (n *TableNumbering) Release()
type TableOpenVerdict ¶
type TableOpenVerdict uint8
TableOpenVerdict distinguishes an unsupported form from framing damage.
const ( TableOpenOk TableOpenVerdict = iota TableOpenRefused TableOpenDamaged TableOpenBodyStopped )
type TableReader ¶
type TableReader struct {
Nodes TableNodeMap
Buffer []byte
Offset int64
Report *TableReport
Ids []byte
Nested bool
}
TableReader holds one bounded body and a view of the file's id trailer. Sub-readers share the trailer and report, but cannot consume sibling bytes.
func (*TableReader) Body ¶
func (r *TableReader) Body() (TableReader, bool)
func (TableReader) EndsEarly ¶
func (r TableReader) EndsEarly() bool
EndsEarly only recognizes an otherwise walkable body's early terminator. Other damage is decoded normally, preserving the prefix already read.
func (*TableReader) Get8 ¶
func (r *TableReader) Get8() uint8
func (*TableReader) Get16 ¶
func (r *TableReader) Get16() uint16
func (*TableReader) Get32 ¶
func (r *TableReader) Get32() uint32
func (*TableReader) Get64 ¶
func (r *TableReader) Get64() uint64
func (*TableReader) Has ¶
func (r *TableReader) Has(n int64) bool
func (*TableReader) Leb ¶
func (r *TableReader) Leb() (uint64, bool)
A rejected integer leaves the cursor unchanged. Its spelling must be minimal and fit in 64 bits, including the tenth byte's single value bit.
func (*TableReader) Room ¶
func (r *TableReader) Room(n uint64) bool
func (*TableReader) Signed ¶
func (r *TableReader) Signed(kind uint8) int64
func (*TableReader) Skip ¶
func (r *TableReader) Skip(kind uint8) bool
func (*TableReader) Sub ¶
func (r *TableReader) Sub(n int64) TableReader
func (*TableReader) Take ¶
func (r *TableReader) Take(sub TableReader)
func (*TableReader) Unsigned ¶
func (r *TableReader) Unsigned(kind uint8) uint64
type TableRefuseReason ¶
type TableRefuseReason uint8
TableRefuseReason is the typed error shared by file and accelerator failures. A successful call returns nil; a failure returns its first failing clause.
const ( TableRefuseOk TableRefuseReason = iota TableRefuseNotACook TableRefuseForeignOrder TableRefuseWrongBuildVersion TableRefuseReservedNotZero TableRefuseBadAlignment TableRefuseTruncated TableRefuseUnalignedBase TableRefuseBadLayout TableRefuseUnknownForm TableRefuseCountOverLength TableRefuseCountOverExtentCap TableRefuseBlobOverSizeCap TableRefuseDataCycle TableRefuseInvalidValue TableRefuseAllocationFailed TableRefuseWireDamaged TableRefuseMalformed TableRefuseClamped TableRefuseKindMismatch TableRefuseBase64Damaged )
func (TableRefuseReason) Error ¶
func (r TableRefuseReason) Error() string
type TableReport ¶
type TableReport struct {
Retained, RetainLost int32
Verdict TableOpenVerdict // unsupported form is distinct from damage
Reason string // why the form was refused; empty for a file read
Widened int32 // a compatible wider kind preserved the value
Unknown int32 // unknown field ids skipped (newer data)
KindMismatch int32 // known id, changed type — skipped, never misdecoded
Clamped int32 // out-of-range values clamped to declared bounds
// Duplicate counts repeated text keys. Fixed-class wire fields do not raise it.
// A body carrying an id twice is legal input
// whose last occurrence wins, silently. A wire read always leaves it zero.
Duplicate int32
// MissingRequired counts required fields (mas-bandwidth/schema docs/SPEC-TABLES.md §2.3) the
// record did not carry: a record an older writer produced before the field
// became required. The refusal names the field in Reason.
MissingRequired int32
Malformed bool // framing damage; decode stopped, partial result kept
// BuildVersionPeer and BuildVersionOwn are the two build versions a strict
// announcement refusal carries (mas-bandwidth/schema docs/SPEC-TABLES.md §3.3): the peer's
// announcement and this unit's own. They are zero on every other read.
BuildVersionPeer uint64
BuildVersionOwn uint64
// LayoutHash is THE FILE'S hash, and it is set by ONE refusal:
// layout_newer reports it "AND NOTHING ELSE" (§5.3). layout_unsupported
// reports it too — the operator's other answer, a layout this build served
// and has retired.
LayoutHash uint64
}
TableReport is the table-wire read report — the permissive contract's ledger. Silence (all zero) means the data matched this reader's schema exactly. Err (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5) is the STRICT read's typed reason for malformed, clamped, kind-mismatched, unknown form, wire-damaged and build-version-mismatched. Unknown, Widened and Retained alone are not one.
func (*TableReport) Err ¶
func (r *TableReport) Err() error
Err is the report's typed error (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5, mas-bandwidth/schema docs/VERSIONING.md The read report). A strict read refuses malformed, clamped, kind-mismatched, unknown form, wire-damaged, build-version-mismatched and missing-required (§2.3, naming the field), each as one typed reason. Unknown, Widened and Retained alone leave it nil, as does a clean read.
type TableRetain ¶
type TableRetain struct {
Bytes []byte
Ids []TableRetainId
Used int64
Count int
// contains filtered or unexported fields
}
type TableRetainId ¶
type TableRetainIds ¶
type TableRetainIds struct {
Numbering *TableNumbering
Retain *TableRetain
Path tableRetainPath
Count int
Overflow, Lost bool
// contains filtered or unexported fields
}
func (*TableRetainIds) Ref ¶
func (i *TableRetainIds) Ref(id uint64) uint64
func (*TableRetainIds) Truncate ¶
func (i *TableRetainIds) Truncate(mark int)
type TableRetainMessageReader ¶
type TableRetainMessageReader struct {
Retain *TableRetain
Path tableRetainPath
// contains filtered or unexported fields
}
type TableRetainReader ¶
type TableRetainReader struct {
Retain *TableRetain
Path tableRetainPath
// contains filtered or unexported fields
}
func (*TableRetainReader) Body ¶
func (r *TableRetainReader) Body() (TableRetainReader, bool)
func (*TableRetainReader) Take ¶
func (r *TableRetainReader) Take(sub TableRetainReader)
type TableRetainWriter ¶
type TableRetainWriter struct {
Buffer []byte
Offset int64
Overflow bool
Measuring bool
Ids *TableRetainIds
}
func (*TableRetainWriter) Advance ¶
func (w *TableRetainWriter) Advance(n int64) bool
func (*TableRetainWriter) Header ¶
func (w *TableRetainWriter) Header(ref uint64, kind uint8)
Header writes a field's reference and kind. A reference below 128 is one LEB byte, so the pair is one two-byte store. Larger references still go through PutLeb then Put8. Bytes match that two-call spelling; a pair that does not fit now leaves the buffer alone, and Save answers -1.
func (*TableRetainWriter) Id ¶
func (w *TableRetainWriter) Id(id uint64)
func (*TableRetainWriter) IdAt ¶
func (w *TableRetainWriter) IdAt(ordinal int, id uint64)
func (*TableRetainWriter) Put8 ¶
func (w *TableRetainWriter) Put8(v uint8)
func (*TableRetainWriter) Put16 ¶
func (w *TableRetainWriter) Put16(v uint16)
func (*TableRetainWriter) Put32 ¶
func (w *TableRetainWriter) Put32(v uint32)
func (*TableRetainWriter) Put64 ¶
func (w *TableRetainWriter) Put64(v uint64)
func (*TableRetainWriter) Put128 ¶
func (w *TableRetainWriter) Put128(lo, hi uint64)
Put128 writes two little-endian lanes, low first, under one Advance.
func (*TableRetainWriter) PutLeb ¶
func (w *TableRetainWriter) PutLeb(v uint64)
func (*TableRetainWriter) Raw ¶
func (w *TableRetainWriter) Raw(data []byte)
func (*TableRetainWriter) Trailer ¶
func (w *TableRetainWriter) Trailer()
type TableStringView ¶
TableStringView has the same borrowed lifetime as TableBytesView.
func TableStringAt ¶
func TableStringAt(slot *TableRef, arena ...*TableArena) TableStringView
type TableTimestampError ¶
TableTimestampError is the refusal of a time.Time that no count names: its nanoseconds since the Unix epoch do not fit an int64, which is Time.UnixNano's own domain, the years 1678 through 2262 (mas-bandwidth/schema docs/SPEC-TABLES.md §2.11).
func (TableTimestampError) Error ¶
func (e TableTimestampError) Error() string
type TableTypeInfo ¶
type TableTypeInfo struct {
SaveBodyRetain func(*TableRetainWriter, unsafe.Pointer) bool
LoadBodyRetain func(TableRetainReader, unsafe.Pointer) bool
LoadMessageBodyRetain func(TableRetainMessageReader, unsafe.Pointer) (TableRetainMessageReader, bool)
CookSize, CookAlign uint32
Name string // schema type name
Size uint32 // unsafe.Sizeof the storage struct
Id uint64
Variable bool
NodeType func(uint64) *TableTypeInfo
SaveBody func(*TableWriter, unsafe.Pointer) bool
LoadBody func(TableReader, unsafe.Pointer) bool
SaveMessageBody func(*TableMessageWriter, unsafe.Pointer) bool
LoadMessageBody func(TableMessageReader, unsafe.Pointer) (TableMessageReader, bool)
NumFields int32
Fields []TableFieldInfo
// Reset puts one instance back at its declared defaults, in place. A
// generic walker that fills a value has to be able to establish the
// defaults an absent field takes, and it holds no type to spell — this is
// the one thing the descriptors could not express without it.
Reset func(storage unsafe.Pointer)
// the declaration's own doc and tags, on the same terms as a field's
// (mas-bandwidth/schema docs/SPEC-TABLES.md §8.1, SPEC §4.1, §4.2)
Doc string
NumTags int32
Tags []string
}
TableTypeInfo is one type's descriptor.
var DeclaredModelTableInfo TableTypeInfo
DeclaredModelTableInfo is DeclaredModel's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var EntryTableInfo TableTypeInfo
EntryTableInfo is Entry's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var ExitRecordTableInfo TableTypeInfo
ExitRecordTableInfo is ExitRecord's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var FenceConfigTableInfo TableTypeInfo
FenceConfigTableInfo is FenceConfig's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var FenceRuleTableInfo TableTypeInfo
FenceRuleTableInfo is FenceRule's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var HarnessConfigRecordTableInfo TableTypeInfo
HarnessConfigRecordTableInfo is HarnessConfigRecord's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var MemberCarryTableInfo TableTypeInfo
MemberCarryTableInfo is MemberCarry's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
var WorkerRecordTableInfo TableTypeInfo
WorkerRecordTableInfo is WorkerRecord's reflection descriptor (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
func DeclaredModelTableType ¶
func DeclaredModelTableType() *TableTypeInfo
DeclaredModelTableType returns DeclaredModel's reflection descriptor.
func EntryTableType ¶
func EntryTableType() *TableTypeInfo
EntryTableType returns Entry's reflection descriptor.
func ExitRecordTableType ¶
func ExitRecordTableType() *TableTypeInfo
ExitRecordTableType returns ExitRecord's reflection descriptor.
func FenceConfigTableType ¶
func FenceConfigTableType() *TableTypeInfo
FenceConfigTableType returns FenceConfig's reflection descriptor.
func FenceRuleTableType ¶
func FenceRuleTableType() *TableTypeInfo
FenceRuleTableType returns FenceRule's reflection descriptor.
func HarnessConfigRecordTableType ¶
func HarnessConfigRecordTableType() *TableTypeInfo
HarnessConfigRecordTableType returns HarnessConfigRecord's reflection descriptor.
func MemberCarryTableType ¶
func MemberCarryTableType() *TableTypeInfo
MemberCarryTableType returns MemberCarry's reflection descriptor.
func WorkerRecordTableType ¶
func WorkerRecordTableType() *TableTypeInfo
WorkerRecordTableType returns WorkerRecord's reflection descriptor.
type TableUnionArmInfo ¶
type TableUnionArmInfo struct {
Field TableFieldInfo // arm shape; offsets are relative to union storage
Void bool // a selected payload-free arm
Reset func(storage unsafe.Pointer) // establish selected payload defaults
Offset uint32 // unsafe.Offsetof the arm's payload within the union storage
Table func() *TableTypeInfo // the arm payload's descriptor
}
TableUnionArmInfo is one arm of a union field: where its payload sits inside the union's storage and what its payload looks like. The arm's NAME and its table-wire id come from the field's EnumName/VariantId functions at the same tag, so nothing is spelled twice (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type TableUnionInfo ¶
type TableUnionInfo struct {
CookTagSize uint32
TagOffset uint32 // unsafe.Offsetof the tag within the union storage
TagSize uint32 // unsafe.Sizeof the tag
Arms []TableUnionArmInfo
}
TableUnionInfo is a union field's shape: the tag, and the arms indexed by it. Arms run [0, EnumMax]; index 0 is the EMPTY arm and carries no payload.
type TableVocabulary ¶
type TableVocabulary struct {
Entries []TableMessageEntry
Count, RefBits int64
BuildVersion uint64
Announced, Refused bool
MaxBytes int64
Strict bool
}
Storage belongs to the caller and is resolved once for one connection direction.
func (*TableVocabulary) Entry ¶
func (v *TableVocabulary) Entry(ref uint64) (TableMessageEntry, bool)
func (*TableVocabulary) Init ¶
func (v *TableVocabulary) Init(storage []TableMessageEntry)
type TableWorker ¶
type TableWorker struct {
Arena *TableArena
// contains filtered or unexported fields
}
func (*TableWorker) AllocBytes ¶
func (w *TableWorker) AllocBytes(length int64) ([]byte, TableRef)
func (*TableWorker) AllocString ¶
func (w *TableWorker) AllocString(length int64) ([]byte, TableRef)
type TableWriteContext ¶
type TableWriteContext interface {
// contains filtered or unexported methods
}
TableWriteContext selects allocation independently from reference addressing. Pass a TableAllocator for a loaded/locked region, or *TableArena for authoring references and that arena's allocation pair. Omit it for Go-owned temporaries.
type TableWriter ¶
TableWriter writes into the caller's buffer, or counts exactly the same bytes in Measuring mode. Offset and every length are checked before use.
func (*TableWriter) Advance ¶
func (w *TableWriter) Advance(n int64) bool
func (*TableWriter) Header ¶
func (w *TableWriter) Header(ref uint64, kind uint8)
Header writes a field's reference and kind. A reference below 128 is one LEB byte, so the pair is one two-byte store. Larger references still go through PutLeb then Put8. Bytes match that two-call spelling; a pair that does not fit now leaves the buffer alone, and Save answers -1.
func (*TableWriter) Id ¶
func (w *TableWriter) Id(id uint64)
func (*TableWriter) IdAt ¶
func (w *TableWriter) IdAt(ordinal int, id uint64)
func (*TableWriter) Put8 ¶
func (w *TableWriter) Put8(v uint8)
func (*TableWriter) Put16 ¶
func (w *TableWriter) Put16(v uint16)
func (*TableWriter) Put32 ¶
func (w *TableWriter) Put32(v uint32)
func (*TableWriter) Put64 ¶
func (w *TableWriter) Put64(v uint64)
func (*TableWriter) Put128 ¶
func (w *TableWriter) Put128(lo, hi uint64)
Put128 writes two little-endian lanes, low first, under one Advance.
func (*TableWriter) PutLeb ¶
func (w *TableWriter) PutLeb(v uint64)
func (*TableWriter) Raw ¶
func (w *TableWriter) Raw(data []byte)
func (*TableWriter) Trailer ¶
func (w *TableWriter) Trailer()
type UnitViewInfo ¶
type UnitViewInfo struct {
Package string
ProtocolId uint64
NumTypes, NumTables, NumEnums, NumFlags, NumUnions, NumConstants int32
Types, Tables []ViewType
Enums, Flags, Unions []ViewVocabulary
Constants []ViewConstant
}
func UnitView ¶
func UnitView() *UnitViewInfo
type ViewConstant ¶
type ViewConstant struct {
Name, File, TypeName string
IsFloat bool
IntValue int64
FloatValue float64
Doc string
NumTags int32
Tags []string
}
UnitView returns this build's registry. Treat its descriptors and slices as immutable; lookups allocate nothing. Packet-only types gain no table codec. A packet dependency can use different storage from its table Row; its descriptor follows that storage, so every offset remains valid for the value.
type ViewVariant ¶
type ViewVariant struct {
Value uint64
Name string
Id uint64
PayloadName string
Payload func() *TableTypeInfo
Field func() *TableFieldInfo
Doc string
NumTags int32
Tags []string
}
type ViewVocabulary ¶
type WorkerRecord ¶
type WorkerRecord = WorkerRecordRow
func WorkerRecordLoad ¶
func WorkerRecordLoad(region, wire []byte, report *TableReport) *WorkerRecord
func WorkerRecordLoadRetain ¶
func WorkerRecordLoadRetain(region, wire []byte, retain *TableRetain, report *TableReport) *WorkerRecord
func WorkerRecordLoadText ¶
func WorkerRecordLoadText(text string, report *TableReport) (*WorkerRecord, error)
WorkerRecordLoadText reads one WorkerRecord from a base64 wire text (mas-bandwidth/schema docs/SPEC-TABLES.md §16.8) into a builder of its own and returns the locked root, as WorkerRecordReadStrict does: it is the STRICT read (§6.5) and refuses whenever the read's report holds an error (TableReport.Err), whatever the tolerant LoadBuilder answered, so a recovered value never comes back. It refuses by name: base64_damaged when the body does not decode, unknown_form when the decoded wire's form byte is not one this build carries, wire_damaged for framing damage, and the report's own reason (malformed, clamped, kind_mismatch, ...) otherwise. A nil report is allowed; a supplied one receives THIS read's report, so earlier counts in it never decide.
func WorkerRecordReadStrict ¶
func WorkerRecordReadStrict(wire []byte) (*WorkerRecord, error)
WorkerRecordReadStrict is the STRICT read (mas-bandwidth/schema docs/SPEC-TABLES.md §6.5): one call, its own builder, one typed reason.
type WorkerRecordBuilder ¶
type WorkerRecordBuilder struct {
Arena TableArena
Main TableWorker
// contains filtered or unexported fields
}
func (*WorkerRecordBuilder) AsConst ¶
func (b *WorkerRecordBuilder) AsConst() *WorkerRecord
func (*WorkerRecordBuilder) GetRoot ¶
func (b *WorkerRecordBuilder) GetRoot() *WorkerRecord
func (*WorkerRecordBuilder) Init ¶
func (b *WorkerRecordBuilder) Init(allocator ...TableAllocator) bool
func (*WorkerRecordBuilder) Lock ¶
func (b *WorkerRecordBuilder) Lock() bool
func (*WorkerRecordBuilder) PackMeasure ¶
func (b *WorkerRecordBuilder) PackMeasure() int64
func (*WorkerRecordBuilder) PackMeasureReason ¶
func (b *WorkerRecordBuilder) PackMeasureReason() (int64, error)
func (*WorkerRecordBuilder) Region ¶
func (b *WorkerRecordBuilder) Region() []byte
func (*WorkerRecordBuilder) Shutdown ¶
func (b *WorkerRecordBuilder) Shutdown()
type WorkerRecordCook ¶
type WorkerRecordCook struct {
Region unsafe.Pointer // the DATA part's base: the root sits at offset zero
RegionLength int64 // data_length, as the header framed it
}
WorkerRecordCook is WorkerRecord's cook: a pointer and a length, and then the root where it lies. Opening one is a HEADER MATCH and no copy; a reference is one add (mas-bandwidth/schema docs/SPEC-TABLES.md §7).
`Cook` is a CLAIMED suffix (§11). C++ spells the same claimed verbs as free functions — WorkerRecordOpen, WorkerRecordAt — and so does Go, because Go has free functions; what is a MEMBER here is only what §11 leaves a language free to make one.
THE MEMORY IS THE CONSUMER'S. Nothing here allocates, nothing here copies and nothing here pins: the region must stay put and stay aligned for as long as this handle or anything reached through it is used.
func (*WorkerRecordCook) Open ¶
func (cook *WorkerRecordCook) Open(base unsafe.Pointer, length int64) error
Open checks the header in SPEC §7 order, bytewise until base alignment is established. A successful match points at the region and allocates nothing.
func (WorkerRecordCook) RegionAlignment ¶
func (c WorkerRecordCook) RegionAlignment() int64
§7.1's constants, so a consumer reading this file has the facts and not a description of them. They are METHODS because §11 leaves a language whose accessors are members free to spell them that way, and a package constant per table per fact would claim names §11 does not.
func (WorkerRecordCook) Root ¶
func (c WorkerRecordCook) Root() *WorkerRecordRow
Root is the root record at the region's base. It is a POINTER and not a copy: a cooked graph is walked by adding deltas to slot addresses.
func (WorkerRecordCook) RootAlign ¶
func (c WorkerRecordCook) RootAlign() int64
func (WorkerRecordCook) RootSize ¶
func (c WorkerRecordCook) RootSize() int64
func (WorkerRecordCook) Type ¶
func (c WorkerRecordCook) Type() *TableCookInfo
Type is WorkerRecord's cooked-record descriptor, the head of the graph a reflective walk follows (mas-bandwidth/schema docs/SPEC-TABLES.md §8).
type WorkerRecordRow ¶
type WorkerRecordRow struct {
Name int64 // *: signed self-relative delta, zero is null (§6.3)
Provider int64 // *: signed self-relative delta, zero is null (§6.3)
Model int64 // *: signed self-relative delta, zero is null (§6.3)
BaseUrl int64 // *: signed self-relative delta, zero is null (§6.3)
EnvVar int64 // *: signed self-relative delta, zero is null (§6.3)
KeyFile int64 // *: signed self-relative delta, zero is null (§6.3)
Secret int64 // *: signed self-relative delta, zero is null (§6.3)
Usage uint8
WorkerClass uint8
Harness int64 // *: signed self-relative delta, zero is null (§6.3)
HarnessArgs TableList[EntryRow]
WorkerDir int64 // *: signed self-relative delta, zero is null (§6.3)
Deadline int64 // *: signed self-relative delta, zero is null (§6.3)
Board int64 // *: signed self-relative delta, zero is null (§6.3)
ReadRoots TableList[EntryRow]
MaxTurns int64
MaxCacheRead int64
InputLimitPhrases TableList[EntryRow]
LaunchGrace int64 // *: signed self-relative delta, zero is null (§6.3)
KeepData bool
// contains filtered or unexported fields
}
WorkerRecordRow — a cooked record. `Row` is a CLAIMED suffix (mas-bandwidth/schema docs/SPEC-TABLES.md §11), so no declaration in the unit can take it.
func WorkerRecordAt ¶
func WorkerRecordAt(slot *int64, arena ...*TableArena) *WorkerRecordRow
WorkerRecordAt dereferences a reference, and it is the same call in a locked region and an opened cook because they are the same encoding (§6.3): the slot is eight bytes, SIGNED, self-relative from the SLOT'S OWN ADDRESS, so a deref needs no base pointer and no bounds test, and NULL IS A DELTA OF ZERO. Nothing about this call is the cook's: it is what a region reference is, and a cook is a region written verbatim.
It takes the SLOT and not its value, because a self-relative delta means nothing without the address it is relative to.