public final class ByteBuffer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) byte[] |
bytes |
(专用程序包) boolean |
fixed |
(专用程序包) int |
length |
(专用程序包) int |
readIndex |
(专用程序包) int |
writeIndex |
| 构造器和说明 |
|---|
ByteBuffer() |
ByteBuffer(byte[] bytes) |
ByteBuffer(int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
andEq(int offset,
byte value) |
private void |
expand() |
byte |
get(int offset) |
int |
getReadIndex() |
int |
getWriteIndex() |
boolean |
isFixed() |
void |
nextReadIndex() |
void |
nextWriteIndex() |
void |
orEq(int offset,
byte value) |
byte |
read() |
void |
resetReadIndex() |
void |
resetWriteIndex() |
int |
reverse(int offset) |
int |
reverse(int offset,
int length) |
void |
set(int offset,
byte value) |
int |
size() |
byte[] |
toBytes() |
void |
write(byte value) |
byte[] bytes
int length
int readIndex
int writeIndex
boolean fixed
public ByteBuffer()
public ByteBuffer(int length)
public ByteBuffer(byte[] bytes)
public int getWriteIndex()
public int getReadIndex()
public void resetReadIndex()
public void nextReadIndex()
public void resetWriteIndex()
public void nextWriteIndex()
public void write(byte value)
public byte read()
public void andEq(int offset,
byte value)
public void orEq(int offset,
byte value)
public void set(int offset,
byte value)
private void expand()
public byte get(int offset)
public int reverse(int offset)
public int reverse(int offset,
int length)
public int size()
public boolean isFixed()
public byte[] toBytes()
Copyright © 2019–2023 indunet. All rights reserved.