()
| 86 | } |
| 87 | |
| 88 | @Override |
| 89 | public void close() { |
| 90 | if (buf != 0) { |
| 91 | if (_wptr > buf) { |
| 92 | flush(); |
| 93 | } |
| 94 | Unsafe.free(buf, bufSize, MemoryTag.NATIVE_LOGGER); |
| 95 | buf = 0; |
| 96 | } |
| 97 | if (this.fd != -1) { |
| 98 | Files.close(this.fd); |
| 99 | this.fd = -1; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | public int getBufSize() { |
| 104 | return bufSize; |