public class FastByteArrayOutputStream extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
current_item |
protected byte[] |
items |
| Constructor and Description |
|---|
FastByteArrayOutputStream() |
FastByteArrayOutputStream(int number) |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
incrementSize(int increment_size) |
int |
size()
return the size+1 as in last item (so an array of 0 values is 1) if added
If using set, use checkCapacity
|
byte[] |
toByteArray() |
void |
write(byte new_name)
set an element
|
void |
write(byte[] new_name)
set an element
|
void |
write(byte[] new_name,
int start,
int len)
set an element
|
void |
write(int new_name)
set an element
|
public FastByteArrayOutputStream()
public FastByteArrayOutputStream(int number)
protected static int incrementSize(int increment_size)
public byte[] toByteArray()
public final void write(byte new_name)
public final void write(int new_name)
public final void write(byte[] new_name,
int start,
int len)
public final void write(byte[] new_name)
public final int size()
Copyright © 2017. All rights reserved.