src/PelFormat.php
public static function getSize($type)
    {
        if (array_key_exists($type, self::$formatLength)) {
            return self::$formatLength[$type];
        } else {
            return Pel::fmt('Unknown format: 0x%X', $type);
        }
    }
public static function getSize($type)
    {
        if (array_key_exists($type, self::$formatLength)) {
            return self::$formatLength[$type];
        } else {
            return Pel::fmt('Unknown format: 0x%X', $type);
        }
    }
public static function getSize ( $ type ) { if ( array_key_exists ( $ type , self :: $ formatLength ) ) { return self :: $ formatLength [ $ type ] ; } else { return Pel :: fmt ( 'Unknown format: 0x%X' , $ type ) ; } }
Return the size of components in a given format in bytes needed to store one component with the
given format.

@param integer $type
as defined in {@link PelFormat}
@return integer|string
Return the size of components in a given format in bytes needed to store one component with the given format .