MCPcopy Create free account
hub / github.com/e2wugui/zeze / free

Method free

ZezeJava/ZezeJava/src/main/java/Zeze/Util/JsonWriter.java:234–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232 }
233
234 public @NotNull JsonWriter free() { // can be reused by ensure()
235 for (Block block = tail.next; ; block = block.next) {
236 allocator.free(ensureNotNull(block));
237 if (block == tail)
238 break;
239 }
240 //noinspection ConstantConditions
241 tail = null;
242 buf = EMPTY;
243 pos = 0;
244 size = 0;
245 tabs = 0;
246 return this;
247 }
248
249 public int size() {
250 return size + pos;

Callers

nothing calls this directly

Calls 2

ensureNotNullMethod · 0.80
freeMethod · 0.65

Tested by

no test coverage detected