Package org.aoju.bus.core.io
Class Buffer.UnsafeCursor
java.lang.Object
org.aoju.bus.core.io.Buffer.UnsafeCursor
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- Buffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final longexpandBuffer(int minByteCount) final intnext()final longresizeBuffer(long newSize) final intseek(long offset)
-
Field Details
-
buffer
-
readWrite
public boolean readWrite -
offset
public long offset -
data
public byte[] data -
start
public int start -
end
public int end
-
-
Constructor Details
-
UnsafeCursor
public UnsafeCursor()
-
-
Method Details
-
next
public final int next() -
seek
public final int seek(long offset) -
resizeBuffer
public final long resizeBuffer(long newSize) -
expandBuffer
public final long expandBuffer(int minByteCount) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-