Wrench\Payload\Payload::getRemainingData PHP Method

getRemainingData() public method

May return 0 (no more bytes required) or null (unknown number of bytes required).
public getRemainingData ( ) : number | null
return number | null
    public function getRemainingData()
    {
        if ($this->isComplete()) {
            return 0;
        }
        try {
            if ($this->getCurrentFrame()->isFinal()) {
                return $this->getCurrentFrame()->getRemainingData();
            }
        } catch (FrameException $e) {
            return null;
        }
        return null;
    }