@Override
    public void deserialize(Buffer buf) {
        latency = buf.readUShort();
        if (latency < 0 || latency > 65535)
            throw new RuntimeException("Forbidden value on latency = " + latency + ", it doesn't respect the following condition : latency < 0 || latency > 65535");
        sampleCount = buf.readShort();
        if (sampleCount < 0)
            throw new RuntimeException("Forbidden value on sampleCount = " + sampleCount + ", it doesn't respect the following condition : sampleCount < 0");
        max = buf.readShort();
        if (max < 0)
            throw new RuntimeException("Forbidden value on max = " + max + ", it doesn't respect the following condition : max < 0");
    }