getid3_apetag::parseAPEtagFlags() –

You appear to be a bot. Output may be restricted

Description

Usage

$array = getid3_apetag::parseAPEtagFlags( $rawflagint );

Parameters

$rawflagint
( int ) required

Returns

array

Source

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


Lines:

1 to 16 of 16
  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                      = array();
    $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);

    $flags['item_contents']     = $this->getid3_apetag::APEcontentTypeFlagLookup($flags['item_contents_raw']);

    return $flags;
  }
 

 View on GitHub View on Trac