WordPress at a glance
function is not described

getid3_flac::parseSEEKTABLE() private WP 1.0

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

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->parseSEEKTABLE( $BlockData );
$BlockData(string) (required)
-

Code of getid3_flac::parseSEEKTABLE() WP 5.7.2

<?php
private function parseSEEKTABLE($BlockData) {
	$info = &$this->getid3->info;

	$offset = 0;
	$BlockLength = strlen($BlockData);
	$placeholderpattern = str_repeat("\xFF", 8);
	while ($offset < $BlockLength) {
		$SampleNumberString = substr($BlockData, $offset, 8);
		$offset += 8;
		if ($SampleNumberString == $placeholderpattern) {

			// placeholder point
			getid3_lib::safe_inc($info['flac']['SEEKTABLE']['placeholders'], 1);
			$offset += 10;

		} else {

			$SampleNumber                                        = getid3_lib::BigEndian2Int($SampleNumberString);
			$info['flac']['SEEKTABLE'][$SampleNumber]['offset']  = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8));
			$offset += 8;
			$info['flac']['SEEKTABLE'][$SampleNumber]['samples'] = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 2));
			$offset += 2;

		}
	}

	return true;
}