public class UnsynchronizedBuffer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UnsynchronizedBuffer.Reader
A byte buffer reader.
|
static class |
UnsynchronizedBuffer.Writer
A byte buffer writer.
|
Constructor and Description |
---|
UnsynchronizedBuffer() |
Modifier and Type | Method and Description |
---|---|
static int |
nextArraySize(int i)
Determines what next array size should be by rounding up to next power of two.
|
public static int nextArraySize(int i)
i
- current array sizeIllegalArgumentException
- if i is negativeCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.