MCPcopy Create free account
hub / github.com/apache/solr / push

Method push

solr/solrj/src/java/org/noggit/JSONParser.java:212–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 5

nextMethod · 0.95
matchesMethod · 0.45
handleObjectStartMethod · 0.45
02-on-this-page.jsFile · 0.45
onScrollFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected