| java.lang.Object | |
| ↳ | org.eclipse.sisu.space.asm.ByteVector |
A dynamically extensible vector of bytes. This class is roughly equivalent to a DataOutputStream on top of a ByteArrayOutputStream, but is more efficient.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
ByteVector with a default initial
size. | |||||||||||
Constructs a new
ByteVector with the given initial
size. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Puts a byte into this byte vector.
| |||||||||||
Puts an array of bytes into this byte vector.
| |||||||||||
Puts an int into this byte vector.
| |||||||||||
Puts a long into this byte vector.
| |||||||||||
Puts a short into this byte vector.
| |||||||||||
Puts an UTF8 string into this byte vector.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new ByteVector with the given initial
size.
| initialSize | the initial size of the byte vector to be constructed. |
|---|
Puts a byte into this byte vector. The byte vector is automatically enlarged if necessary.
| b | a byte. |
|---|
Puts an array of bytes into this byte vector. The byte vector is automatically enlarged if necessary.
| b | an array of bytes. May be null to put len null bytes into this byte vector. |
|---|---|
| off | index of the fist byte of b that must be copied. |
| len | number of bytes of b that must be copied. |
Puts an int into this byte vector. The byte vector is automatically enlarged if necessary.
| i | an int. |
|---|
Puts a long into this byte vector. The byte vector is automatically enlarged if necessary.
| l | a long. |
|---|
Puts a short into this byte vector. The byte vector is automatically enlarged if necessary.
| s | a short. |
|---|
Puts an UTF8 string into this byte vector. The byte vector is automatically enlarged if necessary.
| s | a String. |
|---|