Class Int64Decoder

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

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

    • Int64Decoder

      public Int64Decoder()
  • Method Details

    • decode

      public DecoderResult<DBusInt64> decode(ByteBuffer buffer, int offset) throws DecoderException
      Description copied from interface: Decoder
      Decodes a specific type from a buffer.
      Specified by:
      decode in interface Decoder<ByteBuffer,DBusInt64>
      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.
      Throws:
      DecoderException - If the value could not be decoded successfully.