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

        $bdata = self::typeBytes("a", count($val->getValue())); // a is 1010, type indicator for arrays

        foreach ($val as $v) {
            $bval = $v->toBinary($this);
            $bdata .= self::packItWithSize($this->objectRefSize, $bval);
        }

        $this->objectTable[$saved_object_count] = $bdata;
        return $saved_object_count;
    }
public function arrayToBinary($val)
    {
        $saved_object_count = $this->writtenObjectCount++;

        $bdata = self::typeBytes("a", count($val->getValue())); // a is 1010, type indicator for arrays

        foreach ($val as $v) {
            $bval = $v->toBinary($this);
            $bdata .= self::packItWithSize($this->objectRefSize, $bval);
        }

        $this->objectTable[$saved_object_count] = $bdata;
        return $saved_object_count;
    }
public function arrayToBinary ( $ val ) { $ saved_object_count = $ this -> writtenObjectCount ++ ; $ bdata = self :: typeBytes ( "a" , count ( $ val -> getValue ( ) ) ) ; // a is 1010, type indicator for arrays foreach ( $ val as $ v ) { $ bval = $ v -> toBinary ( $ this ) ; $ bdata .= self :: packItWithSize ( $ this -> objectRefSize , $ bval ) ; } $ this -> objectTable [ $ saved_object_count ] = $ bdata ; return $ saved_object_count ; }
Convert array to binary format and add it to the object table
@param CFArray $val The array to convert
@return integer The position in the object table
Convert array to binary format and add it to the object table