public class BByteArray extends BNewArray
BByteArray
represents a byte array in Ballerina.arrayType, maxArraySize, size
Constructor and Description |
---|
BByteArray() |
BByteArray(byte[] values) |
BByteArray(int size) |
Modifier and Type | Method and Description |
---|---|
void |
add(long index,
byte value) |
BValue |
copy()
Deep copy
BValue . |
byte |
get(long index) |
BValue |
getBValue(long index) |
byte[] |
getBytes() |
BType |
getType() |
void |
grow(int newLength) |
void |
serialize(OutputStream outputStream)
Default serialize implementation for
BValue . |
String |
stringValue() |
ensureCapacity, newArrayInstance, newIterator, prepareForAdd, rangeCheck, rangeCheckForGet, resetSize, size, value
public BByteArray(byte[] values)
public BByteArray()
public BByteArray(int size)
public void add(long index, byte value)
public byte get(long index)
public byte[] getBytes()
public BType getType()
public BValue copy()
BValue
BValue
.BValue
public String stringValue()
stringValue
in interface BValue
stringValue
in class BNewArray
public void serialize(OutputStream outputStream)
BValue
BValue
.outputStream
- Represent the output stream that the data will be written to.Copyright © 2018 WSO2. All rights reserved.