Package com.lucimber.dbus.codec.encoder
Interface Encoder<ValueT,BufferT>
- Type Parameters:
ValueT
- The data type of the value.BufferT
- The data type of the buffer.
- All Known Implementing Classes:
ArrayEncoder
,BooleanEncoder
,ByteEncoder
,DictEncoder
,DictEntryEncoder
,DoubleEncoder
,Int16Encoder
,Int32Encoder
,Int64Encoder
,ObjectPathEncoder
,SignatureEncoder
,StringEncoder
,StructEncoder
,UInt16Encoder
,UInt32Encoder
,UInt64Encoder
,UnixFdEncoder
,VariantEncoder
public interface Encoder<ValueT,BufferT>
Encodes D-Bus types into their marshalled representation.
-
Method Summary
Modifier and TypeMethodDescriptionEncodes a value into bytes.
-
Method Details
-
encode
Encodes a value into bytes.- Parameters:
value
- The data type that needs to be encoded.byteOffset
- The byte count of already encoded bytes, which is necessary for alignment padding.- Returns:
- An
EncoderResult
containing the marshalled representation of the value. - Throws:
EncoderException
- If the value could not have been encoded.
-