267[[deprecated(
"Use DataFromAimingAndPosition instead, this method will be removed in the future. "
268 "NOTE: The order of the input parameters in the new method has been changed to be more consistent with the marshaling order.")]]
320std::uint32_t
ReadUint32(
const std::uint8_t* buffer);
336std::uint16_t
ReadUint16(
const std::uint8_t* buffer);
348std::uint32_t
GetONo(std::uint32_t type, std::uint32_t record, std::uint32_t channel, std::uint32_t boxAndObjectNumber);
361std::uint32_t
GetONoTy2(std::uint32_t type, std::uint32_t record, std::uint32_t channel, std::uint32_t boxNumber, std::uint32_t objectNumber);
Minimal AES70 / OCP.1 TCP client/server library built on JUCE.
std::int32_t DataToInt32(const ByteVector ¶meterData, bool *pOk)
ByteVector DataFromOnoForSubscription(std::uint32_t ono, bool add)
std::string HandleToString(std::uint32_t handle)
ByteVector DataFromAimingAndPosition(std::float_t hor, std::float_t vert, std::float_t rot, std::float_t x, std::float_t y, std::float_t z)
std::uint32_t GetONo(std::uint32_t type, std::uint32_t record, std::uint32_t channel, std::uint32_t boxAndObjectNumber)
std::string DataToString(const ByteVector ¶meterData, bool *pOk)
std::vector< std::uint8_t > ByteVector
Binary buffer type used throughout NanoOcp for all serialized OCP.1 data.
std::float_t DataToFloat(const ByteVector ¶meterData, bool *pOk)
Ocp1DataType
OCA base data type codes, matching OcaBaseDataType in the AES70 specification.
@ OCP1DATATYPE_BOOLEAN
Single byte: 0 = false, non-zero = true.
@ OCP1DATATYPE_CUSTOM
User-defined / vendor-specific type.
@ OCP1DATATYPE_FLOAT64
IEEE 754 double-precision float, big-endian (8 bytes).
@ OCP1DATATYPE_DB_POSITION
d&b-specific 3D position blob (3 × float32); used by deprecated position agent.
@ OCP1DATATYPE_NONE
No type; used as "not set" sentinel.
@ OCP1DATATYPE_INT16
Signed 16-bit integer, big-endian.
@ OCP1DATATYPE_STRING
OCA string: 2-byte big-endian length prefix followed by UTF-8 bytes.
@ OCP1DATATYPE_UINT16
Unsigned 16-bit integer, big-endian.
@ OCP1DATATYPE_INT8
Signed 8-bit integer.
@ OCP1DATATYPE_UINT64
Unsigned 64-bit integer, big-endian.
@ OCP1DATATYPE_UINT32
Unsigned 32-bit integer, big-endian.
@ OCP1DATATYPE_FLOAT32
IEEE 754 single-precision float, big-endian (4 bytes).
@ OCP1DATATYPE_BLOB
Variable-length binary blob; layout is property-specific.
@ OCP1DATATYPE_BLOB_FIXED_LEN
Fixed-length binary blob; size determined by the property definition.
@ OCP1DATATYPE_UINT8
Unsigned 8-bit integer.
@ OCP1DATATYPE_INT64
Signed 64-bit integer, big-endian.
@ OCP1DATATYPE_BIT_STRING
Packed bit string.
@ OCP1DATATYPE_INT32
Signed 32-bit integer, big-endian.
ByteVector DataFromUint64(std::uint64_t intValue)
ByteVector DataFromUint32(std::uint32_t intValue)
ByteVector DataFromFloat(std::float_t floatValue)
ByteVector DataFromBool(bool boolValue)
Convenience helper method to convert a bool into a byte vector.
std::uint8_t DataToUint8(const ByteVector ¶meterData, bool *pOk)
std::uint32_t DataToUint32(const ByteVector ¶meterData, bool *pOk)
ByteVector DataFromUint16(std::uint16_t value)
std::uint16_t DataToUint16(const ByteVector ¶meterData, bool *pOk)
ByteVector DataFromString(const std::string &string)
ByteVector DataFromPositionAndRotation(std::float_t x, std::float_t y, std::float_t z, std::float_t hor, std::float_t vert, std::float_t rot)
ByteVector DataFromDouble(std::double_t doubleValue)
ByteVector DataFromUint8(std::uint8_t value)
std::string DataTypeToString(int dataType)
std::uint32_t ReadUint32(const char *buffer)
ByteVector DataFromInt32(std::int32_t intValue)
std::uint16_t ReadUint16(const char *buffer)
std::double_t DataToDouble(const ByteVector ¶meterData, bool *pOk)
std::uint32_t GetONoTy2(std::uint32_t type, std::uint32_t record, std::uint32_t channel, std::uint32_t boxNumber, std::uint32_t objectNumber)
std::string StatusToString(std::uint8_t status)
ByteVector DataFromPosition(std::float_t x, std::float_t y, std::float_t z)
std::uint64_t DataToUint64(const ByteVector ¶meterData, bool *pOk)
bool DataToBool(const ByteVector ¶meterData, bool *pOk)
Convenience helper method to convert a byte vector into a bool.