src/CFPropertyList/CFBinaryPropertyList.php
public function dataToBinary($val)
    {
        $saved_object_count = $this->writtenObjectCount++;

        $bdata = self::typeBytes("4", strlen($val)); // a is 1000, type indicator for data
        $this->objectTable[$saved_object_count] = $bdata.$val;

        return $saved_object_count;
    }
public function dataToBinary($val)
    {
        $saved_object_count = $this->writtenObjectCount++;

        $bdata = self::typeBytes("4", strlen($val)); // a is 1000, type indicator for data
        $this->objectTable[$saved_object_count] = $bdata.$val;

        return $saved_object_count;
    }
public function dataToBinary ( $ val ) { $ saved_object_count = $ this -> writtenObjectCount ++ ; $ bdata = self :: typeBytes ( "4" , strlen ( $ val ) ) ; // a is 1000, type indicator for data $ this -> objectTable [ $ saved_object_count ] = $ bdata . $ val ; return $ saved_object_count ; }
Convert data value to binary format and add it to the object table
@param string $val The data value
@return integer The position in the object table
Convert data value to binary format and add it to the object table