Package org.epics.pvaccess.impl.remote
Class SerializationHelper
- java.lang.Object
-
- org.epics.pvaccess.impl.remote.SerializationHelper
-
public class SerializationHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description SerializationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyStructureUnchecked(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to)
static void
copyUnchecked(org.epics.pvdata.pv.PVField from, org.epics.pvdata.pv.PVField to)
static org.epics.pvdata.pv.PVField
deserializeFull(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize optional PVField.static org.epics.pvdata.pv.PVStructure
deserializePVRequest(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize PVRequest.static org.epics.pvdata.pv.PVStructure
deserializeStructureAndCreatePVStructure(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize Structure and create PVStructure instance.static org.epics.pvdata.pv.PVStructure
deserializeStructureAndCreatePVStructure(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control, org.epics.pvdata.pv.PVStructure existingStructure)
Deserialize Structure and create PVStructure instance, if necessary.static org.epics.pvdata.pv.PVStructure
deserializeStructureFull(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize optional PVStructrue.static void
partialCopy(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to, org.epics.pvdata.misc.BitSet maskBitSet)
static void
partialCopy(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to, org.epics.pvdata.misc.BitSet maskBitSet, boolean inverse)
static void
serializeFull(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVField pvField)
Serialize optional PVField.static void
serializeNullField(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control)
static void
serializePVRequest(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVStructure pvRequest)
Serialize PVRequest.static void
serializeStructureFull(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVStructure pvStructure)
Serialize optional PVStructrue.
-
-
-
Method Detail
-
deserializePVRequest
public static final org.epics.pvdata.pv.PVStructure deserializePVRequest(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize PVRequest.- Parameters:
payloadBuffer
- data buffer.control
- deserialization control.- Returns:
- deserialized PVRequest, can be
null
.
-
deserializeStructureAndCreatePVStructure
public static final org.epics.pvdata.pv.PVStructure deserializeStructureAndCreatePVStructure(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize Structure and create PVStructure instance.- Parameters:
payloadBuffer
- data buffer.control
- deserialization control.- Returns:
- PVStructure instance, can be
null
.
-
deserializeStructureAndCreatePVStructure
public static final org.epics.pvdata.pv.PVStructure deserializeStructureAndCreatePVStructure(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control, org.epics.pvdata.pv.PVStructure existingStructure)
Deserialize Structure and create PVStructure instance, if necessary.- Parameters:
payloadBuffer
- data buffer.control
- deserialization control.existingStructure
- if deserialized Field matchesexistingStrcuture
Field, thenexistingStructure
instance is returned.null
value is allowed.- Returns:
- PVStructure instance, can be
null
.
-
deserializeStructureFull
public static final org.epics.pvdata.pv.PVStructure deserializeStructureFull(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize optional PVStructrue.- Parameters:
payloadBuffer
- data buffer.control
- deserialization control.- Returns:
- deserialized PVStructure, can be
null
.
-
deserializeFull
public static final org.epics.pvdata.pv.PVField deserializeFull(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)
Deserialize optional PVField.- Parameters:
payloadBuffer
- data buffer.control
- deserialization control.- Returns:
- deserialized PVField, can be
null
.
-
serializeNullField
public static final void serializeNullField(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control)
-
serializePVRequest
public static final void serializePVRequest(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVStructure pvRequest)
Serialize PVRequest.- Parameters:
buffer
- data buffer.control
- serialization control.pvRequest
- pvRequest to serialize.
-
serializeStructureFull
public static final void serializeStructureFull(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVStructure pvStructure)
Serialize optional PVStructrue.- Parameters:
buffer
- data buffer.control
- serialization control.pvStructure
- PVStructure to fully serialize.
-
serializeFull
public static final void serializeFull(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVField pvField)
Serialize optional PVField.- Parameters:
buffer
- data buffer.control
- serialization control.pvField
- PVField to fully serialize.
-
copyUnchecked
public static void copyUnchecked(org.epics.pvdata.pv.PVField from, org.epics.pvdata.pv.PVField to)
-
copyStructureUnchecked
public static void copyStructureUnchecked(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to)
-
partialCopy
public static void partialCopy(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to, org.epics.pvdata.misc.BitSet maskBitSet)
-
partialCopy
public static void partialCopy(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to, org.epics.pvdata.misc.BitSet maskBitSet, boolean inverse)
-
-