Documentation ¶
Index ¶
- Constants
- func NewFieldDefinitionImpl(index int32, fieldName string, fieldType int32, factoryID int32, classID int32, ...) serialization.FieldDefinition
- type ClassDefinitionContext
- type ClassDefinitionImpl
- func (cd *ClassDefinitionImpl) AddFieldDefinition(definition serialization.FieldDefinition)
- func (cd *ClassDefinitionImpl) ClassID() int32
- func (cd *ClassDefinitionImpl) FactoryID() int32
- func (cd *ClassDefinitionImpl) Field(name string) serialization.FieldDefinition
- func (cd *ClassDefinitionImpl) FieldCount() int
- func (cd *ClassDefinitionImpl) Version() int32
- type FieldDefinitionImpl
Constants ¶
View Source
const ( TypePortable = iota TypeByte TypeBool TypeUint16 TypeInt16 TypeInt32 TypeInt64 TypeFloat32 TypeFloat64 TypeUTF TypePortableArray TypeByteArray TypeBoolArray TypeUint16Array TypeInt16Array TypeInt32Array TypeInt64Array TypeFloat32Array TypeFloat64Array TypeUTFArray )
Variables ¶
This section is empty.
Functions ¶
func NewFieldDefinitionImpl ¶
func NewFieldDefinitionImpl(index int32, fieldName string, fieldType int32, factoryID int32, classID int32, version int32) serialization.FieldDefinition
Types ¶
type ClassDefinitionContext ¶
type ClassDefinitionContext struct {
// contains filtered or unexported fields
}
func NewClassDefinitionContext ¶
func NewClassDefinitionContext(factoryID int32) *ClassDefinitionContext
func (*ClassDefinitionContext) LookUp ¶
func (c *ClassDefinitionContext) LookUp(classID int32, version int32) serialization.ClassDefinition
func (*ClassDefinitionContext) Register ¶
func (c *ClassDefinitionContext) Register(classDefinition serialization.ClassDefinition) (serialization.ClassDefinition, error)
type ClassDefinitionImpl ¶
type ClassDefinitionImpl struct {
// contains filtered or unexported fields
}
func NewClassDefinitionImpl ¶
func NewClassDefinitionImpl(factoryID int32, classID int32, version int32) *ClassDefinitionImpl
func (*ClassDefinitionImpl) AddFieldDefinition ¶
func (cd *ClassDefinitionImpl) AddFieldDefinition(definition serialization.FieldDefinition)
func (*ClassDefinitionImpl) ClassID ¶
func (cd *ClassDefinitionImpl) ClassID() int32
func (*ClassDefinitionImpl) FactoryID ¶
func (cd *ClassDefinitionImpl) FactoryID() int32
func (*ClassDefinitionImpl) Field ¶
func (cd *ClassDefinitionImpl) Field(name string) serialization.FieldDefinition
func (*ClassDefinitionImpl) FieldCount ¶
func (cd *ClassDefinitionImpl) FieldCount() int
func (*ClassDefinitionImpl) Version ¶
func (cd *ClassDefinitionImpl) Version() int32
type FieldDefinitionImpl ¶
type FieldDefinitionImpl struct {
// contains filtered or unexported fields
}
func (*FieldDefinitionImpl) ClassID ¶
func (fd *FieldDefinitionImpl) ClassID() int32
func (*FieldDefinitionImpl) FactoryID ¶
func (fd *FieldDefinitionImpl) FactoryID() int32
func (*FieldDefinitionImpl) Index ¶
func (fd *FieldDefinitionImpl) Index() int32
func (*FieldDefinitionImpl) Name ¶
func (fd *FieldDefinitionImpl) Name() string
func (*FieldDefinitionImpl) Type ¶
func (fd *FieldDefinitionImpl) Type() int32
func (*FieldDefinitionImpl) Version ¶
func (fd *FieldDefinitionImpl) Version() int32
Click to show internal directories.
Click to hide internal directories.