@Override
    public Long fromBytes(byte[] bytes) {
        return ByteBuffer.wrap(bytes).getLong();
    }
The long decoder translates bytes into longs.
tools/tools-api/src/main/java/org/apache/kafka/tools/api/LongDecoder.java