public class BasePVStructureArray extends AbstractPVArray implements PVStructureArray
Modifier and Type | Field and Description |
---|---|
protected StructureArray |
structureArray |
protected PVStructure[] |
value |
capacity, capacityMutable, length
convert
Constructor and Description |
---|
BasePVStructureArray(StructureArray structureArray)
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,
StructureArrayData data)
Get values from a PVDoubleArray
and put them into double[]to
|
StructureArray |
getStructureArray()
Get the introspection interface.
|
int |
hashCode() |
int |
put(int offset,
int len,
PVStructure[] from,
int fromOffset)
Put values into a PVStructureArray from PVStructure[]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(PVStructure[] from)
Share the data from caller.
|
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
getCapacity, getLength, isCapacityMutable, setCapacityMutable, setLength
getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, isImmutable, postPut, renameField, setImmutable, setPostHandler, setRequester, toString, toString, toString
getRequesterName, message
serialize
protected StructureArray structureArray
protected PVStructure[] value
public BasePVStructureArray(StructureArray structureArray)
structureArray
- The Introspection interface.public StructureArray getStructureArray()
PVStructureArray
getStructureArray
in interface PVStructureArray
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, StructureArrayData data)
PVStructureArray
get
in interface PVStructureArray
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, PVStructure[] from, int fromOffset)
PVStructureArray
put
in interface PVStructureArray
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(PVStructure[] from)
PVStructureArray
shareData
in interface PVStructureArray
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.