@Override
    public void decode(final ByteBuffer buf, final int available, final StringBuilder log) throws Exception
    {
        if (available <= 0)
        {
            data = null;
            if (log != null)
                log.append("USINT type, data        : - nothing-\n");
            return;
        }
        final CIPData.Type type = CIPData.Type.forCode(buf.getShort());
        final byte[] raw = new byte[available - 2];
        buf.get(raw);
        data = new CIPData(type, raw);
        if (log != null)
            log.append("USINT type, data        : ").append(data).append("\n");
    }