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