Interface EncoderResult<BufferT>

Type Parameters:
BufferT - The data type of the buffer.
All Known Implementing Classes:
EncoderResultImpl

public interface EncoderResult<BufferT>
The EncoderResult class yields the encoded D-Bus data type and the number of encoded bytes. The number of encoded bytes is necessary for the calculation of the alignment padding.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the buffer that contains the result of the encoding.
    int
    Gets the number of bytes, that have been encoded by this encoder while producing the result.
  • Method Details

    • getProducedBytes

      int getProducedBytes()
      Gets the number of bytes, that have been encoded by this encoder while producing the result.
      Returns:
      An integer as the number of encoded bytes.
    • getBuffer

      BufferT getBuffer()
      Gets the buffer that contains the result of the encoding.
      Returns:
      A buffer.