Documentation ¶
Index ¶
- Constants
- type Float64DataType
- func (datatype *Float64DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
- func (datatype *Float64DataType) Name() string
- func (datatype *Float64DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
- func (datatype *Float64DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
- type IDataType
- func DataTypeFactory(name string) (IDataType, error)
- func GetDataTypeByValue(val datavalues.IDataValue) (IDataType, error)
- func NewFloat64DataType() IDataType
- func NewInt32DataType() IDataType
- func NewInt64DataType() IDataType
- func NewStringDataType() IDataType
- func NewUInt32DataType() IDataType
- func NewUInt64DataType() IDataType
- type Int32DataType
- func (datatype *Int32DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
- func (datatype *Int32DataType) Name() string
- func (datatype *Int32DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
- func (datatype *Int32DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
- type Int64DataType
- func (datatype *Int64DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
- func (datatype *Int64DataType) Name() string
- func (datatype *Int64DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
- func (datatype *Int64DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
- type StringDataType
- func (datatype *StringDataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
- func (datatype *StringDataType) Name() string
- func (datatype *StringDataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
- func (datatype *StringDataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
- type UInt32DataType
- func (datatype *UInt32DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
- func (datatype *UInt32DataType) Name() string
- func (datatype *UInt32DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
- func (datatype *UInt32DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
- type UInt64DataType
- func (datatype *UInt64DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
- func (datatype *UInt64DataType) Name() string
- func (datatype *UInt64DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
- func (datatype *UInt64DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
Constants ¶
View Source
const (
DataTypeFloat64Name = "Float64"
)
View Source
const (
DataTypeInt32Name = "Int32"
)
View Source
const (
DataTypeInt64Name = "Int64"
)
View Source
const (
DataTypeStringName = "String"
)
View Source
const (
DataTypeUInt32Name = "UInt32"
)
View Source
const (
DataTypeUInt64Name = "UInt64"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float64DataType ¶
type Float64DataType struct { }
func (*Float64DataType) Deserialize ¶
func (datatype *Float64DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
func (*Float64DataType) Name ¶
func (datatype *Float64DataType) Name() string
func (*Float64DataType) Serialize ¶
func (datatype *Float64DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
func (*Float64DataType) SerializeText ¶
func (datatype *Float64DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
type IDataType ¶
type IDataType interface { Name() string Serialize(*binary.Writer, datavalues.IDataValue) error SerializeText(io.Writer, datavalues.IDataValue) error Deserialize(*binary.Reader) (datavalues.IDataValue, error) }
func DataTypeFactory ¶
func GetDataTypeByValue ¶
func GetDataTypeByValue(val datavalues.IDataValue) (IDataType, error)
func NewFloat64DataType ¶
func NewFloat64DataType() IDataType
func NewInt32DataType ¶
func NewInt32DataType() IDataType
func NewInt64DataType ¶
func NewInt64DataType() IDataType
func NewStringDataType ¶
func NewStringDataType() IDataType
func NewUInt32DataType ¶
func NewUInt32DataType() IDataType
func NewUInt64DataType ¶
func NewUInt64DataType() IDataType
type Int32DataType ¶
type Int32DataType struct { }
func (*Int32DataType) Deserialize ¶
func (datatype *Int32DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
func (*Int32DataType) Name ¶
func (datatype *Int32DataType) Name() string
func (*Int32DataType) Serialize ¶
func (datatype *Int32DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
func (*Int32DataType) SerializeText ¶
func (datatype *Int32DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
type Int64DataType ¶
type Int64DataType struct { }
func (*Int64DataType) Deserialize ¶
func (datatype *Int64DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
func (*Int64DataType) Name ¶
func (datatype *Int64DataType) Name() string
func (*Int64DataType) Serialize ¶
func (datatype *Int64DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
func (*Int64DataType) SerializeText ¶
func (datatype *Int64DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
type StringDataType ¶
type StringDataType struct { }
func (*StringDataType) Deserialize ¶
func (datatype *StringDataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
func (*StringDataType) Name ¶
func (datatype *StringDataType) Name() string
func (*StringDataType) Serialize ¶
func (datatype *StringDataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
func (*StringDataType) SerializeText ¶
func (datatype *StringDataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
type UInt32DataType ¶
type UInt32DataType struct { }
func (*UInt32DataType) Deserialize ¶
func (datatype *UInt32DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
func (*UInt32DataType) Name ¶
func (datatype *UInt32DataType) Name() string
func (*UInt32DataType) Serialize ¶
func (datatype *UInt32DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
func (*UInt32DataType) SerializeText ¶
func (datatype *UInt32DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
type UInt64DataType ¶
type UInt64DataType struct { }
func (*UInt64DataType) Deserialize ¶
func (datatype *UInt64DataType) Deserialize(reader *binary.Reader) (datavalues.IDataValue, error)
func (*UInt64DataType) Name ¶
func (datatype *UInt64DataType) Name() string
func (*UInt64DataType) Serialize ¶
func (datatype *UInt64DataType) Serialize(writer *binary.Writer, v datavalues.IDataValue) error
func (*UInt64DataType) SerializeText ¶
func (datatype *UInt64DataType) SerializeText(writer io.Writer, v datavalues.IDataValue) error
Click to show internal directories.
Click to hide internal directories.