classdef

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassDefinitionBuilder

type ClassDefinitionBuilder struct {
	// contains filtered or unexported fields
}

ClassDefinitionBuilder is used to build and register class definitions manually.

func NewClassDefinitionBuilder

func NewClassDefinitionBuilder(factoryID int32, classID int32, version int32) *ClassDefinitionBuilder

NewClassDefinitionBuilder returns a ClassDefinitionBuilder. You can use a default portableVersion (0) for non-versioned classes. Make sure to specify the portableVersion compatible with portableVersion in the serialization.Service.

func (*ClassDefinitionBuilder) AddBoolArrayField

func (cdb *ClassDefinitionBuilder) AddBoolArrayField(fieldName string) error

AddBoolArrayField adds []bool field to class definition.

func (*ClassDefinitionBuilder) AddBoolField

func (cdb *ClassDefinitionBuilder) AddBoolField(fieldName string) error

AddBoolField adds bool field to class definition.

func (*ClassDefinitionBuilder) AddByteArrayField

func (cdb *ClassDefinitionBuilder) AddByteArrayField(fieldName string) error

AddByteArrayField adds []byte field to class definition.

func (*ClassDefinitionBuilder) AddByteField

func (cdb *ClassDefinitionBuilder) AddByteField(fieldName string) error

AddByteField adds byte field to class definition.

func (*ClassDefinitionBuilder) AddField

func (cdb *ClassDefinitionBuilder) AddField(fieldDefinition serialization.FieldDefinition) error

AddField adds a field to class definition.

func (*ClassDefinitionBuilder) AddFloat32ArrayField

func (cdb *ClassDefinitionBuilder) AddFloat32ArrayField(fieldName string) error

AddFloat32ArrayField adds []float32 field to class definition.

func (*ClassDefinitionBuilder) AddFloat32Field

func (cdb *ClassDefinitionBuilder) AddFloat32Field(fieldName string) error

AddFloat32Field adds float32 field to class definition.

func (*ClassDefinitionBuilder) AddFloat64ArrayField

func (cdb *ClassDefinitionBuilder) AddFloat64ArrayField(fieldName string) error

AddFloat64ArrayField adds []float64 field to class definition.

func (*ClassDefinitionBuilder) AddFloat64Field

func (cdb *ClassDefinitionBuilder) AddFloat64Field(fieldName string) error

AddFloat64Field adds float64 field to class definition.

func (*ClassDefinitionBuilder) AddInt16ArrayField

func (cdb *ClassDefinitionBuilder) AddInt16ArrayField(fieldName string) error

AddInt16ArrayField adds []int16 field to class definition.

func (*ClassDefinitionBuilder) AddInt16Field

func (cdb *ClassDefinitionBuilder) AddInt16Field(fieldName string) error

AddInt16Field adds int16 field to class definition.

func (*ClassDefinitionBuilder) AddInt32ArrayField

func (cdb *ClassDefinitionBuilder) AddInt32ArrayField(fieldName string) error

AddInt32ArrayField adds []int32 field to class definition.

func (*ClassDefinitionBuilder) AddInt32Field

func (cdb *ClassDefinitionBuilder) AddInt32Field(fieldName string) error

AddInt32Field adds int32 field to class definition.

func (*ClassDefinitionBuilder) AddInt64ArrayField

func (cdb *ClassDefinitionBuilder) AddInt64ArrayField(fieldName string) error

AddInt64ArrayField adds []int64 field to class definition.

func (*ClassDefinitionBuilder) AddInt64Field

func (cdb *ClassDefinitionBuilder) AddInt64Field(fieldName string) error

AddInt64Field adds int64 field to class definition.

func (*ClassDefinitionBuilder) AddPortableArrayField

func (cdb *ClassDefinitionBuilder) AddPortableArrayField(fieldName string, def serialization.ClassDefinition) error

AddPortableArrayField adds []Portable field to class definition.

func (*ClassDefinitionBuilder) AddPortableField

func (cdb *ClassDefinitionBuilder) AddPortableField(fieldName string, def serialization.ClassDefinition) error

AddPortableField adds Portable field to class definition.

func (*ClassDefinitionBuilder) AddUInt16ArrayField

func (cdb *ClassDefinitionBuilder) AddUInt16ArrayField(fieldName string) error

AddUInt16ArrayField adds []uint16 field to class definition.

func (*ClassDefinitionBuilder) AddUInt16Field

func (cdb *ClassDefinitionBuilder) AddUInt16Field(fieldName string) error

AddUInt16Field adds uint16 field to class definition.

func (*ClassDefinitionBuilder) AddUTFArrayField

func (cdb *ClassDefinitionBuilder) AddUTFArrayField(fieldName string) error

AddUTFArrayField adds []string field to class definition.

func (*ClassDefinitionBuilder) AddUTFField

func (cdb *ClassDefinitionBuilder) AddUTFField(fieldName string) error

AddUTFField adds UTF field to class definition.

func (*ClassDefinitionBuilder) Build

Build returns the built class definition.

Jump to

Keyboard shortcuts

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