public class TypeHelper extends Object
Constructor and Description |
---|
TypeHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
encodeBooleanValue(ProtocolOptions options,
io.netty.buffer.ByteBuf out,
Value<Boolean> value,
boolean withTimestamp)
Encode Single-point information with quality descriptor
|
static void |
encodeDoublePointValue(ProtocolOptions options,
io.netty.buffer.ByteBuf out,
Value<DoublePoint> value,
boolean withTimestamp)
Encode Double-point information with quality descriptor
|
static void |
encodeFloatValue(ProtocolOptions options,
io.netty.buffer.ByteBuf out,
Value<Float> value,
boolean withTimestamp)
Encode Short floating point number with quality descriptor
|
static void |
encodeScaledValue(ProtocolOptions options,
io.netty.buffer.ByteBuf out,
Value<Short> value,
boolean withTimestamp)
Encode Short integer number with quality descriptor
|
static Value<Boolean> |
parseBooleanValue(ProtocolOptions options,
io.netty.buffer.ByteBuf data,
boolean withTimestamp)
Parse Single-point information with quality descriptor
|
static Value<DoublePoint> |
parseDoublePointValue(ProtocolOptions options,
io.netty.buffer.ByteBuf data,
boolean withTimestamp)
Parse Double-point information with quality descriptor
|
static Value<Float> |
parseFloatValue(ProtocolOptions options,
io.netty.buffer.ByteBuf data,
boolean withTimestamp)
Parse Short floating point number with quality descriptor
|
static Value<Short> |
parseScaledValue(ProtocolOptions options,
io.netty.buffer.ByteBuf data,
boolean withTimestamp)
Parse Short integer number with quality descriptor
|
public static void encodeBooleanValue(ProtocolOptions options, io.netty.buffer.ByteBuf out, Value<Boolean> value, boolean withTimestamp)
withTimestamp
- true
if the time should be encoded as well,
false
otherwisepublic static void encodeDoublePointValue(ProtocolOptions options, io.netty.buffer.ByteBuf out, Value<DoublePoint> value, boolean withTimestamp)
withTimestamp
- true
if the time should be encoded as well,
false
otherwisepublic static Value<Boolean> parseBooleanValue(ProtocolOptions options, io.netty.buffer.ByteBuf data, boolean withTimestamp)
withTimestamp
- true
if the time should be parsed as well,
false
otherwisepublic static Value<DoublePoint> parseDoublePointValue(ProtocolOptions options, io.netty.buffer.ByteBuf data, boolean withTimestamp)
withTimestamp
- true
if the time should be parsed as well,
false
otherwisepublic static void encodeFloatValue(ProtocolOptions options, io.netty.buffer.ByteBuf out, Value<Float> value, boolean withTimestamp)
public static Value<Float> parseFloatValue(ProtocolOptions options, io.netty.buffer.ByteBuf data, boolean withTimestamp)
public static void encodeScaledValue(ProtocolOptions options, io.netty.buffer.ByteBuf out, Value<Short> value, boolean withTimestamp)
public static Value<Short> parseScaledValue(ProtocolOptions options, io.netty.buffer.ByteBuf data, boolean withTimestamp)