public interface OpcUaBinaryDataTypeCodec<T> extends DataTypeCodec<T,OpcUaBinaryStreamDecoder,OpcUaBinaryStreamEncoder>
Modifier and Type | Method and Description |
---|---|
T |
decode(SerializationContext context,
OpcUaBinaryStreamDecoder reader)
Decode a
T using the provided OpcUaBinaryStreamDecoder . |
void |
encode(SerializationContext context,
OpcUaBinaryStreamEncoder writer,
T value)
Encode a
T using the provided OpcUaBinaryStreamEncoder . |
getType
T decode(SerializationContext context, OpcUaBinaryStreamDecoder reader) throws UaSerializationException
T
using the provided OpcUaBinaryStreamDecoder
.decode
in interface DataTypeCodec<T,OpcUaBinaryStreamDecoder,OpcUaBinaryStreamEncoder>
context
- the SerializationContext
.reader
- the OpcUaBinaryStreamDecoder
to decode from.T
.UaSerializationException
void encode(SerializationContext context, OpcUaBinaryStreamEncoder writer, T value) throws UaSerializationException
T
using the provided OpcUaBinaryStreamEncoder
.encode
in interface DataTypeCodec<T,OpcUaBinaryStreamDecoder,OpcUaBinaryStreamEncoder>
context
- the SerializationContext
.writer
- the OpcUaBinaryStreamEncoder
to encode to.value
- the T
to encode.UaSerializationException
Copyright © 2020. All rights reserved.