public class ByteBuffer extends Object
ByteBuffer class.
| Constructor and Description |
|---|
ByteBuffer()
Constructor for ByteBuffer.
|
ByteBuffer(int extend)
Constructor for ByteBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte in)
append.
|
void |
append(byte[] in)
append.
|
void |
append(byte[] in,
int offset,
int len)
append.
|
void |
clear()
clear.
|
int |
getSize()
Getter for the field
size. |
byte[] |
toByte()
toByte.
|
public ByteBuffer()
Constructor for ByteBuffer.
public ByteBuffer(int extend)
Constructor for ByteBuffer.
extend - a int.public void append(byte in)
append.
in - a byte.public void append(byte[] in)
append.
in - an array of byte.public void append(byte[] in,
int offset,
int len)
append.
in - an array of byte.offset - a int.len - a int.public int getSize()
Getter for the field size.
public byte[] toByte()
toByte.
public void clear()
clear.
Copyright © 2016. All Rights Reserved.