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 |
encodeFloatValue(ProtocolOptions options,
io.netty.buffer.ByteBuf out,
Value<Float> value,
boolean withTimestamp)
Encode Short floating point 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<Float> |
parseFloatValue(ProtocolOptions options,
io.netty.buffer.ByteBuf data,
boolean withTimestamp)
Parse Short floating point 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 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 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)