public class ByteArrayFields extends ArrayFields
fieldAttrs, objectAttr
Constructor and Description |
---|
ByteArrayFields(int length) |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(IntVector v) |
int |
arrayLength() |
byte[] |
asByteArray() |
ByteArrayFields |
clone() |
boolean |
equals(Object o)
default implementation is just an identity check
|
byte |
getByteValue(int pos) |
int |
getHeapSize()
give an approximation of the heap size in bytes - we assume fields are word
aligned, hence the number of values*4 should be good.
|
Object |
getValues() |
void |
hash(HashData hd) |
protected void |
printValue(PrintStream ps,
int idx) |
void |
setByteValue(int pos,
byte b) |
asBooleanArray, asCharArray, asCharArray, asDoubleArray, asFieldSlots, asFloatArray, asIntArray, asLongArray, asReferenceArray, asShortArray, getBooleanValue, getCharValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberOfFields, getReferenceValue, getShortValue, isReferenceArray, printElements, setBooleanValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReferenceValue, setShortValue
addFieldAttr, addObjectAttr, cloneFields, compareAttrs, copyAttrs, fieldAttrIterator, fieldAttrIterator, getFieldAttr, getFieldAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, hasFieldAttr, hasFieldAttr, hasFieldAttr, hashAttrs, hashCode, hasObjectAttr, hasObjectAttr, objectAttrIterator, objectAttrIterator, removeFieldAttr, removeObjectAttr, replaceFieldAttr, replaceObjectAttr, setFieldAttr, setObjectAttr
public byte[] asByteArray()
asByteArray
in class ArrayFields
protected void printValue(PrintStream ps, int idx)
printValue
in class ArrayFields
public Object getValues()
getValues
in class ArrayFields
public int arrayLength()
arrayLength
in class ArrayFields
public int getHeapSize()
Fields
getHeapSize
in class ArrayFields
public boolean equals(Object o)
Object
public ByteArrayFields clone()
public void setByteValue(int pos, byte b)
setByteValue
in class ArrayFields
public byte getByteValue(int pos)
getByteValue
in class ArrayFields