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 voidcopyStructureUnchecked(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to)static voidcopyUnchecked(org.epics.pvdata.pv.PVField from, org.epics.pvdata.pv.PVField to)static org.epics.pvdata.pv.PVFielddeserializeFull(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)Deserialize optional PVField.static org.epics.pvdata.pv.PVStructuredeserializePVRequest(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)Deserialize PVRequest.static org.epics.pvdata.pv.PVStructuredeserializeStructureAndCreatePVStructure(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)Deserialize Structure and create PVStructure instance.static org.epics.pvdata.pv.PVStructuredeserializeStructureAndCreatePVStructure(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.PVStructuredeserializeStructureFull(ByteBuffer payloadBuffer, org.epics.pvdata.pv.DeserializableControl control)Deserialize optional PVStructrue.static voidpartialCopy(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to, org.epics.pvdata.misc.BitSet maskBitSet)static voidpartialCopy(org.epics.pvdata.pv.PVStructure from, org.epics.pvdata.pv.PVStructure to, org.epics.pvdata.misc.BitSet maskBitSet, boolean inverse)static voidserializeFull(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVField pvField)Serialize optional PVField.static voidserializeNullField(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control)static voidserializePVRequest(ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control, org.epics.pvdata.pv.PVStructure pvRequest)Serialize PVRequest.static voidserializeStructureFull(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 matchesexistingStrcutureField, thenexistingStructureinstance is returned.nullvalue 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)
-
-