public class BasePVDoubleArray extends AbstractPVScalarArray implements PVDoubleArray
Modifier and Type | Field and Description |
---|---|
protected double[] |
value |
capacity, capacityMutable, length
convert
Constructor and Description |
---|
BasePVDoubleArray(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,
DoubleArrayData data)
Get values from a PVDoubleArray
and put them into double[]to
|
int |
hashCode() |
int |
put(int offset,
int len,
double[] from,
int fromOffset)
Put values into a PVDoubleArray from double[]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(double[] 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 BasePVDoubleArray(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, DoubleArrayData data)
PVDoubleArray
get
in interface PVDoubleArray
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, double[] from, int fromOffset)
PVDoubleArray
put
in interface PVDoubleArray
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(double[] from)
PVDoubleArray
shareData
in interface PVDoubleArray
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.