This commit is contained in:
Masaaki Goshima 2020-08-14 18:26:42 +09:00
parent 5e9696f57f
commit 7fa9ad1424
1 changed files with 1 additions and 1 deletions

View File

@ -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