WordPress at a glance
function is not described

getid3_quicktime::QuicktimeParseContainerAtom() public WP 1.0

{} It's a method of the class: getid3_quicktime{}

No Hooks.

Return

Array|false. Nothing.

Usage

$getid3_quicktime = new getid3_quicktime();
$getid3_quicktime->QuicktimeParseContainerAtom( $atom_data, $baseoffset, $atomHierarchy, $ParseAllPossibleAtoms );
$atom_data(string) (required)
-
$baseoffset(int) (required)
-
$atomHierarchy(array) (required)
-
$ParseAllPossibleAtoms *(true false) (required)*

Code of getid3_quicktime::QuicktimeParseContainerAtom() WP 5.7.2

<?php
public function QuicktimeParseContainerAtom($atom_data, $baseoffset, &$atomHierarchy, $ParseAllPossibleAtoms) {
	$atom_structure  = false;
	$subatomoffset  = 0;
	$subatomcounter = 0;
	if ((strlen($atom_data) == 4) && (getid3_lib::BigEndian2Int($atom_data) == 0x00000000)) {
		return false;
	}
	while ($subatomoffset < strlen($atom_data)) {
		$subatomsize = getid3_lib::BigEndian2Int(substr($atom_data, $subatomoffset + 0, 4));
		$subatomname =                           substr($atom_data, $subatomoffset + 4, 4);
		$subatomdata =                           substr($atom_data, $subatomoffset + 8, $subatomsize - 8);
		if ($subatomsize == 0) {
			// Furthermore, for historical reasons the list of atoms is optionally
			// terminated by a 32-bit integer set to 0. If you are writing a program
			// to read user data atoms, you should allow for the terminating 0.
			if (strlen($atom_data) > 12) {
				$subatomoffset += 4;
				continue;
			}
			return $atom_structure;
		}
		if (strlen($subatomdata) < ($subatomsize - 8)) {
		    // we don't have enough data to decode the subatom.
		    // this may be because we are refusing to parse large subatoms, or it may be because this atom had its size set too large
		    // so we passed in the start of a following atom incorrectly?
		    return $atom_structure;
		}
		$atom_structure[$subatomcounter++] = $this->QuicktimeParseAtom($subatomname, $subatomsize, $subatomdata, $baseoffset + $subatomoffset, $atomHierarchy, $ParseAllPossibleAtoms);
		$subatomoffset += $subatomsize;
	}
	return $atom_structure;
}