()
| 210 | |
| 211 | // push current parser state (use at start of new container) |
| 212 | private final void push() { |
| 213 | if (ptr >= stack.length) { |
| 214 | // doubling here is probably overkill, but anything that needs to double more than |
| 215 | // once (32 levels deep) is very atypical anyway. |
| 216 | byte[] newstack = new byte[stack.length << 1]; |
| 217 | System.arraycopy(stack, 0, newstack, 0, stack.length); |
| 218 | stack = newstack; |
| 219 | } |
| 220 | stack[ptr++] = state; |
| 221 | } |
| 222 | |
| 223 | // pop parser state (use at end of container) |
| 224 | private final void pop() { |
no outgoing calls
no test coverage detected