public class BasePVUIntArray extends AbstractPVScalarArray implements PVUIntArray
Modifier and Type | Field and Description |
---|---|
protected int[] |
value |
capacity, capacityMutable, length
convert
Constructor and Description |
---|
BasePVUIntArray(ScalarArray array)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deserialize(ByteBuffer buffer,
DeserializableControl control)
Deserialize buffer.
|
boolean |
equals(Object obj) |
int |
get(int offset,
int len,
IntArrayData data)
Get values from a PVIntArray and put them into int[]to.
|
int |
hashCode() |
int |
put(int offset,
int len,
int[] from,
int fromOffset)
Put values into a PVIntArray from int[]from.
|
void |
serialize(ByteBuffer buffer,
SerializableControl flusher,
int offset,
int count)
Serialize field into given buffer.
|
void |
setCapacity(int len)
Set the capacity.
|
void |
shareData(int[] from)
Share the data from caller.
|
getScalarArray
getCapacity, getLength, isCapacityMutable, serialize, setCapacityMutable, setImmutable, setLength
changeField, getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, getRequesterName, isImmutable, message, postPut, renameField, setData, setPostHandler, setRequester, toString, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getScalarArray
getCapacity, getLength, isCapacityMutable, setCapacityMutable, setLength
getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, isImmutable, postPut, renameField, setImmutable, setPostHandler, setRequester, toString, toString, toString
getRequesterName, message
serialize
public BasePVUIntArray(ScalarArray array)
array
- The Introspection interface.public void setCapacity(int len)
PVArray
setCapacity
in interface PVArray
setCapacity
in class AbstractPVArray
len
- The new capacity for the array.public int get(int offset, int len, IntArrayData data)
PVUIntArray
get
in interface PVUIntArray
offset
- The offset to the first element to get.len
- The maximum number of elements to transfer.data
- The class containing the data and an offset into the data.
Get sets these values. The caller must do the actual data transfer.public int put(int offset, int len, int[] from, int fromOffset)
PVUIntArray
put
in interface PVUIntArray
offset
- The offset to the first element to put.len
- The maximum number of elements to transfer.from
- The array from which to get the data.fromOffset
- The offset into from.public void shareData(int[] from)
PVUIntArray
shareData
in interface PVUIntArray
from
- The data to share.public void serialize(ByteBuffer buffer, SerializableControl flusher, int offset, int count)
SerializableArray
serialize
in interface SerializableArray
buffer
- serialization buffer.flusher
- flush interface.offset
- offset in array.count
- number of elements in array.public void deserialize(ByteBuffer buffer, DeserializableControl control)
Serializable
deserialize
in interface Serializable
buffer
- serialization buffer.control
- deserialization control.Copyright © 2014. All Rights Reserved.