Package com.cosylab.epics.caj.impl
Class DBRDecoder
- java.lang.Object
-
- com.cosylab.epics.caj.impl.DBRDecoder
-
public class DBRDecoder extends Object
DBR decoder - deserializes data payload. N N O TTT EEE NN N O O T E_ due to exisiting JCA API (strict constructors, n/a setters), this class is very messy... N NN O O T E sth like DBRType.create(Object data) is missing... N N O T EEE- Version:
- $id$
- Author:
- Matej Sekoranja
-
-
Constructor Summary
Constructors Constructor Description DBRDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBRgetDBR(DBR inDBR, short dataTypeValue, int dataCount, ByteBuffer dataPayloadBuffer)Get (deserialize) data payload buffer to DBR structure.
-
-
-
Method Detail
-
getDBR
public static DBR getDBR(DBR inDBR, short dataTypeValue, int dataCount, ByteBuffer dataPayloadBuffer)
Get (deserialize) data payload buffer to DBR structure.- Parameters:
inDBR- DBR to be used (set), do not create a new instance of DBR if non-null. DBR type and count must match.dataTypeValue- data type, seeDBRType.dataCount- data type.dataPayloadBuffer- data payload buffer received from server, non-null.- Returns:
- DBR structure,
nullin case of error.
-
-