getid3_apetag::parseAPEtagFlags

Advertisement

Syntax Syntax

getid3_apetag::parseAPEtagFlags( int $rawflagint )

Parameters Parameters

$rawflagint

(Required)

Return Return

(array)

Source Source

File: wp-includes/ID3/module.tag.apetag.php

	 * @param int $rawflagint
	 *
	 * @return array
	 */
	public function parseAPEtagFlags($rawflagint) {
		// "Note: APE Tags 1.0 do not use any of the APE Tag flags.
		// All are set to zero on creation and ignored on reading."
		// http://wiki.hydrogenaud.io/index.php?title=Ape_Tags_Flags
		$flags['header']            = (bool) ($rawflagint & 0x80000000);
		$flags['footer']            = (bool) ($rawflagint & 0x40000000);
		$flags['this_is_header']    = (bool) ($rawflagint & 0x20000000);
		$flags['item_contents_raw'] =        ($rawflagint & 0x00000006) >> 1;
		$flags['read_only']         = (bool) ($rawflagint & 0x00000001);

Advertisement

Advertisement

Leave a Reply