static class HttpPostBodyUtil.SeekAheadOptimize
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) ByteBuf |
buffer |
(package private) byte[] |
bytes |
(package private) int |
limit |
(package private) int |
origPos |
(package private) int |
pos |
(package private) int |
readerIndex |
| Constructor and Description |
|---|
SeekAheadOptimize(ByteBuf buffer) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getReadPosition(int index) |
(package private) void |
setReadPosition(int minus) |
byte[] bytes
int readerIndex
int pos
int origPos
int limit
ByteBuf buffer
SeekAheadOptimize(ByteBuf buffer)
buffer - buffer with a backing byte arrayvoid setReadPosition(int minus)
minus - this value will be used as (currentPos - minus) to set
the current readerIndex in the buffer.int getReadPosition(int index)
index - raw index of the array (pos in general)