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