Package com.lucimber.dbus.codec.decoder
Interface DecoderResult<ValueT extends DBusType>
- Type Parameters:
ValueT- data type
- All Known Implementing Classes:
DecoderResultImpl
public interface DecoderResult<ValueT extends DBusType>
The DecoderResult class yields the decoded D-Bus data type and the number of decoded bytes. The
decoded D-Bus data type is an instance of
DBusType. The number of consumed bytes is
necessary for the calculation of the alignment padding.-
Method Summary
Modifier and TypeMethodDescriptionintGets the number of bytes, that have been consumed by a decoder while producing this result.getValue()Gets the decoded value.voidsetConsumedBytes(int consumedBytes) Sets the number of bytes, that have been consumed by a decoder while producing this result.
-
Method Details
-
getConsumedBytes
int getConsumedBytes()Gets the number of bytes, that have been consumed by a decoder while producing this result.- Returns:
- An integer as the number of consumed bytes.
-
setConsumedBytes
void setConsumedBytes(int consumedBytes) Sets the number of bytes, that have been consumed by a decoder while producing this result.- Parameters:
consumedBytes- anInteger
-
getValue
ValueT getValue()Gets the decoded value.- Returns:
- the value.
-