()
| 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; |
nothing calls this directly
no test coverage detected