forked from mirror/go-json
Refactor
This commit is contained in:
parent
5e9696f57f
commit
7fa9ad1424
|
@ -68,7 +68,7 @@ func (s *stream) read() bool {
|
||||||
s.allRead = true
|
s.allRead = true
|
||||||
}
|
}
|
||||||
// extend buffer (2) is protect ( s.cursor++ x2 )
|
// extend buffer (2) is protect ( s.cursor++ x2 )
|
||||||
// e.g.) line 85 in decode_interface.go
|
// e.g.) decodeEscapeString
|
||||||
const extendBufLength = int64(2)
|
const extendBufLength = int64(2)
|
||||||
|
|
||||||
totalSize := s.length + int64(n) + extendBufLength
|
totalSize := s.length + int64(n) + extendBufLength
|
||||||
|
|
Loading…
Reference in New Issue