Class ByteDecoder

java.lang.Object
com.lucimber.dbus.codec.decoder.ByteDecoder
All Implemented Interfaces:
Decoder<ByteBuffer,DBusByte>

public final class ByteDecoder extends Object implements Decoder<ByteBuffer,DBusByte>
A decoder which unmarshals a byte from the byte stream format used by D-Bus.
See Also:
  • Constructor Details

    • ByteDecoder

      public ByteDecoder()
  • Method Details

    • decode

      public DecoderResult<DBusByte> decode(ByteBuffer buffer, int offset)
      Description copied from interface: Decoder
      Decodes a specific type from a buffer.
      Specified by:
      decode in interface Decoder<ByteBuffer,DBusByte>
      Parameters:
      buffer - The buffer that contains the marshalled type.
      offset - The number of bytes of a message, that have already been decoded.
      Returns:
      The result of the decoding procedure.