src/CFPropertyList/CFBinaryPropertyList.php
public static function typeBytes($type, $type_len)
    {
        $optional_int = "";

        if ($type_len < 15) {
            $type .= sprintf("%x", $type_len);
        } else {
            $type .= "f";
            $optional_int = self::intBytes($type_len);
        }

        return pack("H*", $type).$optional_int;
    }
public static function typeBytes($type, $type_len)
    {
        $optional_int = "";

        if ($type_len < 15) {
            $type .= sprintf("%x", $type_len);
        } else {
            $type .= "f";
            $optional_int = self::intBytes($type_len);
        }

        return pack("H*", $type).$optional_int;
    }
public static function typeBytes ( $ type , $ type_len ) { $ optional_int = "" ; if ( $ type_len < 15 ) { $ type .= sprintf ( "%x" , $ type_len ) ; } else { $ type .= "f" ; $ optional_int = self :: intBytes ( $ type_len ) ; } return pack ( "H*" , $ type ) . $ optional_int ; }
Code an type byte, consisting of the type marker and the length of the type
@param string $type The type byte value (i.e. "d" for dictionaries)
@param integer $type_len The length of the type
@return string The packed type byte value
Code an type byte consisting of the type marker and the length of the type