1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-21 23:07:33 +02:00

array lazy fill and full fill

This commit is contained in:
Tao Wen
2017-01-24 22:36:16 +08:00
parent 2d647f04ca
commit 8656482625
5 changed files with 203 additions and 16 deletions

View File

@ -5,6 +5,7 @@ import (
)
type objectLazyAny struct {
baseAny
buf []byte
iter *Iterator
err error
@ -189,9 +190,6 @@ func (any *objectLazyAny) IterateObject() (func() (string, Any, bool), bool) {
i++
return key, value, true
} else {
if remaining == nil {
return "", nil, false
}
// read from buffer
iter := any.iter
if iter == nil {