src/Structures/Buffer.php
public function pop(int $length): string
    {
        $length = (int) $length;
        if (0 >= $length) {
            return '';
        }
        
        $buffer = (string) substr($this->data, -$length);
        
        $this->data = (string) substr($this->data, 0, -$length);
        
        return $buffer;
    }
public function pop(int $length): string
    {
        $length = (int) $length;
        if (0 >= $length) {
            return '';
        }
        
        $buffer = (string) substr($this->data, -$length);
        
        $this->data = (string) substr($this->data, 0, -$length);
        
        return $buffer;
    }
@param int $length

@return string