22 $info = &$this->getid3->info;
25 $SZIPHeader = $this->
fread(6);
26 if (substr($SZIPHeader, 0, 4) !=
"SZ\x0A\x04") {
30 $info[
'fileformat'] =
'szip';
33 $this->
error(
'SZIP parsing not enabled in this version of getID3() ['.$this->getid3->version().
']');
36 while (!$this->
feof()) {
37 $NextBlockID = $this->
fread(2);
38 switch ($NextBlockID) {
43 $this->
fseek(4, SEEK_CUR);
48 $BHheaderdata = $this->
fread($BHheaderbytes);
50 while (strpos($BHheaderdata,
"\x00", $BHheaderoffset) > 0) {
60 $BHdataArray[
'filename'] = substr($BHheaderdata, $BHheaderoffset, strcspn($BHheaderdata,
"\x00"));
61 $BHheaderoffset += (strlen($BHdataArray[
'filename']) + 1);
63 $BHdataArray[
'owner'] = substr($BHheaderdata, $BHheaderoffset, strcspn($BHheaderdata,
"\x00"));
64 $BHheaderoffset += (strlen($BHdataArray[
'owner']) + 1);
66 $BHdataArray[
'group'] = substr($BHheaderdata, $BHheaderoffset, strcspn($BHheaderdata,
"\x00"));
67 $BHheaderoffset += (strlen($BHdataArray[
'group']) + 1);
84 $info[
'szip'][
'BH'][] = $BHdataArray;
static PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8')
getID3() by James Heinrich info@getid3.org //
fseek($bytes, $whence=SEEK_SET)
static BigEndian2Int($byteword, $synchsafe=false, $signed=false)