|
@@ -20,10 +20,6 @@ func (codec *stringCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteString(str)
|
|
stream.WriteString(str)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *stringCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *stringCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *stringCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*string)(ptr)) == ""
|
|
return *((*string)(ptr)) == ""
|
|
|
}
|
|
}
|
|
@@ -41,10 +37,6 @@ func (codec *intCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteInt(*((*int)(ptr)))
|
|
stream.WriteInt(*((*int)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *intCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *intCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *intCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*int)(ptr)) == 0
|
|
return *((*int)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -62,10 +54,6 @@ func (codec *uintptrCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteUint64(uint64(*((*uintptr)(ptr))))
|
|
stream.WriteUint64(uint64(*((*uintptr)(ptr))))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *uintptrCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *uintptrCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *uintptrCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*uintptr)(ptr)) == 0
|
|
return *((*uintptr)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -83,10 +71,6 @@ func (codec *int8Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteInt8(*((*int8)(ptr)))
|
|
stream.WriteInt8(*((*int8)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *int8Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *int8Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *int8Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*int8)(ptr)) == 0
|
|
return *((*int8)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -104,10 +88,6 @@ func (codec *int16Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteInt16(*((*int16)(ptr)))
|
|
stream.WriteInt16(*((*int16)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *int16Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *int16Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *int16Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*int16)(ptr)) == 0
|
|
return *((*int16)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -125,10 +105,6 @@ func (codec *int32Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteInt32(*((*int32)(ptr)))
|
|
stream.WriteInt32(*((*int32)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *int32Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *int32Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *int32Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*int32)(ptr)) == 0
|
|
return *((*int32)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -146,10 +122,6 @@ func (codec *int64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteInt64(*((*int64)(ptr)))
|
|
stream.WriteInt64(*((*int64)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *int64Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *int64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *int64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*int64)(ptr)) == 0
|
|
return *((*int64)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -168,10 +140,6 @@ func (codec *uintCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteUint(*((*uint)(ptr)))
|
|
stream.WriteUint(*((*uint)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *uintCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *uintCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *uintCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*uint)(ptr)) == 0
|
|
return *((*uint)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -189,10 +157,6 @@ func (codec *uint8Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteUint8(*((*uint8)(ptr)))
|
|
stream.WriteUint8(*((*uint8)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *uint8Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *uint8Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *uint8Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*uint8)(ptr)) == 0
|
|
return *((*uint8)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -210,10 +174,6 @@ func (codec *uint16Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteUint16(*((*uint16)(ptr)))
|
|
stream.WriteUint16(*((*uint16)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *uint16Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *uint16Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *uint16Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*uint16)(ptr)) == 0
|
|
return *((*uint16)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -231,10 +191,6 @@ func (codec *uint32Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteUint32(*((*uint32)(ptr)))
|
|
stream.WriteUint32(*((*uint32)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *uint32Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *uint32Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *uint32Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*uint32)(ptr)) == 0
|
|
return *((*uint32)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -252,10 +208,6 @@ func (codec *uint64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteUint64(*((*uint64)(ptr)))
|
|
stream.WriteUint64(*((*uint64)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *uint64Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *uint64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *uint64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*uint64)(ptr)) == 0
|
|
return *((*uint64)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -273,10 +225,6 @@ func (codec *float32Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteFloat32(*((*float32)(ptr)))
|
|
stream.WriteFloat32(*((*float32)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *float32Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *float32Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *float32Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*float32)(ptr)) == 0
|
|
return *((*float32)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -294,10 +242,6 @@ func (codec *float64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteFloat64(*((*float64)(ptr)))
|
|
stream.WriteFloat64(*((*float64)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *float64Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *float64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *float64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return *((*float64)(ptr)) == 0
|
|
return *((*float64)(ptr)) == 0
|
|
|
}
|
|
}
|
|
@@ -315,10 +259,6 @@ func (codec *boolCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteBool(*((*bool)(ptr)))
|
|
stream.WriteBool(*((*bool)(ptr)))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *boolCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, codec)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *boolCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *boolCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return !(*((*bool)(ptr)))
|
|
return !(*((*bool)(ptr)))
|
|
|
}
|
|
}
|
|
@@ -366,11 +306,8 @@ func (codec *emptyInterfaceCodec) Decode(ptr unsafe.Pointer, iter *Iterator) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (codec *emptyInterfaceCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
func (codec *emptyInterfaceCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
- stream.WriteVal(*((*interface{})(ptr)))
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (codec *emptyInterfaceCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- stream.WriteVal(val)
|
|
|
|
|
|
|
+ obj := *((*interface{})(ptr))
|
|
|
|
|
+ stream.WriteVal(obj)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (codec *emptyInterfaceCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *emptyInterfaceCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
@@ -414,10 +351,6 @@ func (codec *nonEmptyInterfaceCodec) Encode(ptr unsafe.Pointer, stream *Stream)
|
|
|
stream.WriteVal(i)
|
|
stream.WriteVal(i)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *nonEmptyInterfaceCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- stream.WriteVal(val)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *nonEmptyInterfaceCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *nonEmptyInterfaceCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
nonEmptyInterface := (*nonEmptyInterface)(ptr)
|
|
nonEmptyInterface := (*nonEmptyInterface)(ptr)
|
|
|
return nonEmptyInterface.word == nil
|
|
return nonEmptyInterface.word == nil
|
|
@@ -434,10 +367,6 @@ func (codec *anyCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
(*((*Any)(ptr))).WriteTo(stream)
|
|
(*((*Any)(ptr))).WriteTo(stream)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *anyCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- (val.(Any)).WriteTo(stream)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *anyCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *anyCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return (*((*Any)(ptr))).Size() == 0
|
|
return (*((*Any)(ptr))).Size() == 0
|
|
|
}
|
|
}
|
|
@@ -466,15 +395,6 @@ func (codec *jsonNumberCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *jsonNumberCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- number := val.(json.Number)
|
|
|
|
|
- if len(number) == 0 {
|
|
|
|
|
- stream.WriteRaw("0")
|
|
|
|
|
- } else {
|
|
|
|
|
- stream.WriteRaw(string(number))
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *jsonNumberCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *jsonNumberCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return len(*((*json.Number)(ptr))) == 0
|
|
return len(*((*json.Number)(ptr))) == 0
|
|
|
}
|
|
}
|
|
@@ -503,15 +423,6 @@ func (codec *jsoniterNumberCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *jsoniterNumberCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- number := val.(Number)
|
|
|
|
|
- if len(number) == 0 {
|
|
|
|
|
- stream.WriteRaw("0")
|
|
|
|
|
- } else {
|
|
|
|
|
- stream.WriteRaw(string(number))
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *jsoniterNumberCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *jsoniterNumberCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return len(*((*Number)(ptr))) == 0
|
|
return len(*((*Number)(ptr))) == 0
|
|
|
}
|
|
}
|
|
@@ -527,10 +438,6 @@ func (codec *jsonRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.WriteRaw(string(*((*json.RawMessage)(ptr))))
|
|
stream.WriteRaw(string(*((*json.RawMessage)(ptr))))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *jsonRawMessageCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- stream.WriteRaw(string(val.(json.RawMessage)))
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *jsonRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *jsonRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return len(*((*json.RawMessage)(ptr))) == 0
|
|
return len(*((*json.RawMessage)(ptr))) == 0
|
|
|
}
|
|
}
|
|
@@ -546,10 +453,6 @@ func (codec *jsoniterRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream)
|
|
|
stream.WriteRaw(string(*((*RawMessage)(ptr))))
|
|
stream.WriteRaw(string(*((*RawMessage)(ptr))))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *jsoniterRawMessageCodec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- stream.WriteRaw(string(val.(RawMessage)))
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *jsoniterRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *jsoniterRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return len(*((*RawMessage)(ptr))) == 0
|
|
return len(*((*RawMessage)(ptr))) == 0
|
|
|
}
|
|
}
|
|
@@ -606,22 +509,6 @@ func (codec *base64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.writeByte('"')
|
|
stream.writeByte('"')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (codec *base64Codec) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- ptr := extractInterface(val).word
|
|
|
|
|
- src := *((*[]byte)(ptr))
|
|
|
|
|
- if len(src) == 0 {
|
|
|
|
|
- stream.WriteNil()
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- encoding := base64.StdEncoding
|
|
|
|
|
- stream.writeByte('"')
|
|
|
|
|
- size := encoding.EncodedLen(len(src))
|
|
|
|
|
- buf := make([]byte, size)
|
|
|
|
|
- encoding.Encode(buf, src)
|
|
|
|
|
- stream.buf = append(stream.buf, buf...)
|
|
|
|
|
- stream.writeByte('"')
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (codec *base64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (codec *base64Codec) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return len(*((*[]byte)(ptr))) == 0
|
|
return len(*((*[]byte)(ptr))) == 0
|
|
|
}
|
|
}
|
|
@@ -670,10 +557,6 @@ func (encoder *stringModeNumberEncoder) Encode(ptr unsafe.Pointer, stream *Strea
|
|
|
stream.writeByte('"')
|
|
stream.writeByte('"')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (encoder *stringModeNumberEncoder) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, encoder)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (encoder *stringModeNumberEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (encoder *stringModeNumberEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return encoder.elemEncoder.IsEmpty(ptr)
|
|
return encoder.elemEncoder.IsEmpty(ptr)
|
|
|
}
|
|
}
|
|
@@ -690,10 +573,6 @@ func (encoder *stringModeStringEncoder) Encode(ptr unsafe.Pointer, stream *Strea
|
|
|
stream.WriteString(string(tempStream.Buffer()))
|
|
stream.WriteString(string(tempStream.Buffer()))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (encoder *stringModeStringEncoder) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, encoder)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (encoder *stringModeStringEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (encoder *stringModeStringEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return encoder.elemEncoder.IsEmpty(ptr)
|
|
return encoder.elemEncoder.IsEmpty(ptr)
|
|
|
}
|
|
}
|
|
@@ -720,9 +599,6 @@ func (encoder *marshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) {
|
|
|
stream.Write(bytes)
|
|
stream.Write(bytes)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-func (encoder *marshalerEncoder) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, encoder)
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return encoder.checkIsEmpty.IsEmpty(ptr)
|
|
return encoder.checkIsEmpty.IsEmpty(ptr)
|
|
@@ -746,10 +622,6 @@ func (encoder *textMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (encoder *textMarshalerEncoder) EncodeInterface(val interface{}, stream *Stream) {
|
|
|
|
|
- WriteToStream(val, stream, encoder)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool {
|
|
|
return encoder.checkIsEmpty.IsEmpty(ptr)
|
|
return encoder.checkIsEmpty.IsEmpty(ptr)
|
|
|
}
|
|
}
|