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) |
byte |
get(int offset) |
byte[] |
getBytes() |
int |
getReadIndex() |
int |
getWriteIndex() |
int |
int8Type(byte[] bytes,
int offset) |
void |
orEq(int offset,
byte value) |
byte |
read() |
void |
resetReadIndex() |
void |
resetWriteIndex() |
protected int |
reverse(int offset) |
void |
set(int offset,
byte value) |
int |
size() |
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 resetWriteIndex()
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)
public int int8Type(byte[] bytes,
int offset)
public byte get(int offset)
protected int reverse(int offset)
public int size()
public byte[] getBytes()
Copyright © 2019–2023 indunet. All rights reserved.