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 Type
    Method
    Description
    int
    Gets the number of bytes, that have been consumed by a decoder while producing this result.
    Gets the decoded value.
    void
    setConsumedBytes(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 - an Integer
    • getValue

      ValueT getValue()
      Gets the decoded value.
      Returns:
      the value.