public class BufferRing<B extends BufferRing.ReleasableBuffer> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BufferRing.BufferFactory<B extends BufferRing.ReleasableBuffer> |
static interface |
BufferRing.ReleasableBuffer |
Constructor and Description |
---|
BufferRing(BufferRing.BufferFactory<B> factory,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
B |
get() |
B |
get(int offset) |
int |
position() |
BufferRing |
position(int position) |
void |
release() |
public BufferRing(BufferRing.BufferFactory<B> factory, int size)
public int capacity()
public int position()
public BufferRing position(int position)
public B get()
public B get(int offset)
public void release()
Copyright © 2024. All rights reserved.