public interface PVUByteArray extends PVScalarArray
Modifier and Type | Method and Description |
---|---|
int |
get(int offset,
int length,
ByteArrayData data)
Get values from a PVByteArray and put them into byte[]from.
|
int |
put(int offset,
int length,
byte[] from,
int fromOffset)
Put values into a PVByteArray from byte[]to.
|
void |
shareData(byte[] from)
Share the data from caller.
|
getScalarArray
getCapacity, getLength, isCapacityMutable, setCapacity, setCapacityMutable, setLength
getField, getFieldName, getFieldOffset, getNextFieldOffset, getNumberFields, getParent, getPVAuxInfo, isImmutable, postPut, renameField, setImmutable, setPostHandler, setRequester, toString, toString, toString
getRequesterName, message
serialize
deserialize, serialize
int get(int offset, int length, ByteArrayData data)
offset
- The offset to the first element to get.length
- 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.int put(int offset, int length, byte[] from, int fromOffset)
offset
- The offset to the first element to put.length
- The maximum number of elements to transfer.from
- The array from which to get the data.fromOffset
- The offset into from.IllegalStateException
- if the field is not mutable.void shareData(byte[] from)
from
- The data to share.Copyright © 2014. All Rights Reserved.