lib/danog/PHP/StructClass.php
public function pack(...$data)
    {
        if ($this->format === null) {
            $format = array_shift($data);
        } else {
            $format = $this->format;
        }

        return $this->struct->pack($format, ...$data);
    }
public function pack(...$data)
    {
        if ($this->format === null) {
            $format = array_shift($data);
        } else {
            $format = $this->format;
        }

        return $this->struct->pack($format, ...$data);
    }
pack.

Packs data into bytes

@param	...$data	Parameters to encode (may contain format string)

@return Encoded data