public class BasePVUnionArray extends AbstractPVArray implements PVUnionArray
Modifier and Type | Field and Description |
---|---|
protected UnionArray |
unionArray |
protected PVUnion[] |
value |
capacity, capacityMutable, length
convert
Constructor and Description |
---|
BasePVUnionArray(UnionArray unionArray)
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,
UnionArrayData data)
Get values from a PVUnionArray
and put them into PVUnion[]to
|
UnionArray |
getUnionArray()
Get the introspection interface.
|
int |
hashCode() |
int |
put(int offset,
int len,
PVUnion[] from,
int fromOffset)
Put values into a PVUnionArray from PVUnion[]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(PVUnion[] 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 UnionArray unionArray
protected PVUnion[] value
public BasePVUnionArray(UnionArray unionArray)
unionArray
- The Introspection interface.public UnionArray getUnionArray()
PVUnionArray
getUnionArray
in interface PVUnionArray
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, UnionArrayData data)
PVUnionArray
get
in interface PVUnionArray
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, PVUnion[] from, int fromOffset)
PVUnionArray
put
in interface PVUnionArray
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(PVUnion[] from)
PVUnionArray
shareData
in interface PVUnionArray
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.