Update vendor file to fix #426

This commit is contained in:
Tomofumi Hayashi
2020-01-28 20:17:35 +09:00
committed by Tomofumi Hayashi
parent 5577822b36
commit eaf6ff6e20
30 changed files with 252 additions and 203 deletions

View File

@@ -200,6 +200,7 @@ type stringModeStringEncoder struct {
func (encoder *stringModeStringEncoder) Encode(ptr unsafe.Pointer, stream *Stream) {
tempStream := encoder.cfg.BorrowStream(nil)
tempStream.Attachment = stream.Attachment
defer encoder.cfg.ReturnStream(tempStream)
encoder.elemEncoder.Encode(ptr, tempStream)
stream.WriteString(string(tempStream.Buffer()))