Skip skips the next object in 'b' and returns the remaining bytes. If the object is a map or array, all of its elements will be skipped. Possible errors: - [ErrShortBytes] (not enough bytes in b) - [InvalidPrefixError] (bad encoding) - [ErrRecursion] (too deeply nested data)
(b []byte)
| 1317 | // - [InvalidPrefixError] (bad encoding) |
| 1318 | // - [ErrRecursion] (too deeply nested data) |
| 1319 | func Skip(b []byte) ([]byte, error) { |
| 1320 | return skipDepth(b, 0) |
| 1321 | } |
| 1322 | |
| 1323 | func skipDepth(b []byte, depth int) ([]byte, error) { |
| 1324 | if depth >= recursionLimit { |
searching dependent graphs…