Documentation ¶
Index ¶
- Constants
- func DeserializeBinaryJSON(posAndBuf *PosAndBuf) types.BinaryJSON
- func DeserializeBool(posAndBuf *PosAndBuf) bool
- func DeserializeByte(posAndBuf *PosAndBuf) byte
- func DeserializeBytesBuffer(posAndBuf *PosAndBuf) *bytes.Buffer
- func DeserializeEnum(posAndBuf *PosAndBuf) types.Enum
- func DeserializeFloat32(posAndBuf *PosAndBuf) float32
- func DeserializeFloat64(posAndBuf *PosAndBuf) float64
- func DeserializeInt(posAndBuf *PosAndBuf) int
- func DeserializeInt32(posAndBuf *PosAndBuf) int32
- func DeserializeInt64(posAndBuf *PosAndBuf) int64
- func DeserializeInt8(posAndBuf *PosAndBuf) int8
- func DeserializeInterface(posAndBuf *PosAndBuf) any
- func DeserializeJSONTypeCode(posAndBuf *PosAndBuf) types.JSONTypeCode
- func DeserializeMyDecimal(posAndBuf *PosAndBuf) types.MyDecimal
- func DeserializeOpaque(posAndBuf *PosAndBuf) types.Opaque
- func DeserializeSet(posAndBuf *PosAndBuf) types.Set
- func DeserializeString(posAndBuf *PosAndBuf) string
- func DeserializeTime(posAndBuf *PosAndBuf) types.Time
- func DeserializeTimeDuration(posAndBuf *PosAndBuf) time.Duration
- func DeserializeTypesDuration(posAndBuf *PosAndBuf) types.Duration
- func DeserializeUint32(posAndBuf *PosAndBuf) uint32
- func DeserializeUint64(posAndBuf *PosAndBuf) uint64
- func DeserializeUint8(posAndBuf *PosAndBuf) uint8
- func SerializeBinaryJSON(value *types.BinaryJSON, buf []byte) []byte
- func SerializeBool(value bool, buf []byte) []byte
- func SerializeByte(value byte, buf []byte) []byte
- func SerializeBytesBuffer(value *bytes.Buffer, buf []byte) []byte
- func SerializeEnum(value *types.Enum, buf []byte) []byte
- func SerializeFloat32(value float32, buf []byte) []byte
- func SerializeFloat64(value float64, buf []byte) []byte
- func SerializeGoTimeDuration(value time.Duration, buf []byte) []byte
- func SerializeInt(value int, buf []byte) []byte
- func SerializeInt32(value int32, buf []byte) []byte
- func SerializeInt64(value int64, buf []byte) []byte
- func SerializeInt8(value int8, buf []byte) []byte
- func SerializeInterface(value any, buf []byte) []byte
- func SerializeJSONTypeCode(value types.JSONTypeCode, buf []byte) []byte
- func SerializeMyDecimal(value *types.MyDecimal, buf []byte) []byte
- func SerializeOpaque(value types.Opaque, buf []byte) []byte
- func SerializeSet(value *types.Set, buf []byte) []byte
- func SerializeString(value string, buf []byte) []byte
- func SerializeTime(value types.Time, buf []byte) []byte
- func SerializeTypesDuration(value types.Duration, buf []byte) []byte
- func SerializeUint32(value uint32, buf []byte) []byte
- func SerializeUint64(value uint64, buf []byte) []byte
- func SerializeUint8(value uint8, buf []byte) []byte
- type PosAndBuf
Constants ¶
const ( BoolType = iota Int64Type Uint64Type FloatType StringType BinaryJSONType OpaqueType TimeType DurationType InterfaceTypeCodeLen = int64(1) JSONTypeCodeLen = int64(types.JSONTypeCode(1)) BoolLen = int64(unsafe.Sizeof(true)) ByteLen = int64(unsafe.Sizeof(byte(0))) Int8Len = int64(unsafe.Sizeof(int8(0))) Uint8Len = int64(unsafe.Sizeof(uint8(0))) IntLen = int64(unsafe.Sizeof(int(0))) Int32Len = int64(unsafe.Sizeof(int32(0))) Uint32Len = int64(unsafe.Sizeof(uint32(0))) Int64Len = int64(unsafe.Sizeof(int64(0))) Uint64Len = int64(unsafe.Sizeof(uint64(0))) Float32Len = int64(unsafe.Sizeof(float32(0))) Float64Len = int64(unsafe.Sizeof(float64(0))) TimeLen = int64(unsafe.Sizeof(types.Time{})) TimeDurationLen = int64(unsafe.Sizeof(time.Duration(0))) )
These types are used for serializing or deserializing interface type
Variables ¶
This section is empty.
Functions ¶
func DeserializeBinaryJSON ¶
func DeserializeBinaryJSON(posAndBuf *PosAndBuf) types.BinaryJSON
DeserializeBinaryJSON deserializes BinaryJSON type
func DeserializeBool ¶
DeserializeBool deserializes bool type
func DeserializeByte ¶
DeserializeByte deserializes byte type
func DeserializeBytesBuffer ¶
DeserializeBytesBuffer deserializes bytes.Buffer type
func DeserializeEnum ¶
DeserializeEnum deserializes Enum type
func DeserializeFloat32 ¶
DeserializeFloat32 deserializes float32 type
func DeserializeFloat64 ¶
DeserializeFloat64 deserializes float64 type
func DeserializeInt ¶
DeserializeInt deserializes int type
func DeserializeInt32 ¶
DeserializeInt32 deserializes int32 type
func DeserializeInt64 ¶
DeserializeInt64 deserializes int64 type
func DeserializeInt8 ¶
DeserializeInt8 deserializes int8 type
func DeserializeInterface ¶
DeserializeInterface deserializes interface type
func DeserializeJSONTypeCode ¶
func DeserializeJSONTypeCode(posAndBuf *PosAndBuf) types.JSONTypeCode
DeserializeJSONTypeCode deserializes JSONTypeCode type
func DeserializeMyDecimal ¶
DeserializeMyDecimal deserializes MyDecimal type
func DeserializeOpaque ¶
DeserializeOpaque deserializes Opaque type
func DeserializeSet ¶
DeserializeSet deserializes Set type
func DeserializeString ¶
DeserializeString deserializes String type
func DeserializeTime ¶
DeserializeTime deserializes Time type
func DeserializeTimeDuration ¶
DeserializeTimeDuration deserializes time.Duration type
func DeserializeTypesDuration ¶
DeserializeTypesDuration deserializes types.Duration type
func DeserializeUint32 ¶
DeserializeUint32 deserializes uint32 type
func DeserializeUint64 ¶
DeserializeUint64 deserializes uint64 type
func DeserializeUint8 ¶
DeserializeUint8 deserializes int8 type
func SerializeBinaryJSON ¶
func SerializeBinaryJSON(value *types.BinaryJSON, buf []byte) []byte
SerializeBinaryJSON serializes BinaryJSON type
func SerializeBool ¶
SerializeBool serializes bool type
func SerializeByte ¶
SerializeByte serializes byte type
func SerializeBytesBuffer ¶
SerializeBytesBuffer serializes bytes.Buffer type
func SerializeEnum ¶
SerializeEnum serializes Enum type
func SerializeFloat32 ¶
SerializeFloat32 serializes float32 type
func SerializeFloat64 ¶
SerializeFloat64 serializes float64 type
func SerializeGoTimeDuration ¶
SerializeGoTimeDuration serializes time.Duration type
func SerializeInt ¶
SerializeInt serializes int type
func SerializeInt32 ¶
SerializeInt32 serializes int32 type
func SerializeInt64 ¶
SerializeInt64 serializes int64 type
func SerializeInt8 ¶
SerializeInt8 serializes int8 type
func SerializeInterface ¶
SerializeInterface serialize interface type
func SerializeJSONTypeCode ¶
func SerializeJSONTypeCode(value types.JSONTypeCode, buf []byte) []byte
SerializeJSONTypeCode serializes JSONTypeCode type
func SerializeMyDecimal ¶
SerializeMyDecimal serializes MyDecimal type
func SerializeOpaque ¶
SerializeOpaque serializes Opaque type
func SerializeSet ¶
SerializeSet serializes Set type
func SerializeString ¶
SerializeString serializes String type
func SerializeTime ¶
SerializeTime serializes Time type
func SerializeTypesDuration ¶
SerializeTypesDuration serializes types.Duration type
func SerializeUint32 ¶
SerializeUint32 serializes uint32 type
func SerializeUint64 ¶
SerializeUint64 serializes uint64 type
func SerializeUint8 ¶
SerializeUint8 serializes uint8 type