lib/danog/PHP/StructClass.php
public function calcsize($format = null)
    {
        return ($this->format !== null && $this->size !== null) ? $this->size : $this->struct->calcsize($format);
    }
public function calcsize($format = null)
    {
        return ($this->format !== null && $this->size !== null) ? $this->size : $this->struct->calcsize($format);
    }
calcsize.

Return the size of the struct (and hence of the string) corresponding to the given format.


@param	$format	Format string

@return int with size of the struct.