Lines Matching defs:length
1036 $length = ord(fgetc($this->_fp)) * 256 + ord(fgetc($this->_fp));
1040 if ($length < 2) {
1043 $length = $length - 2; // The length we got counts itself
1057 $length = -1; // This field has no length... it includes all data until EOF
1067 $this->_markers[$count]['length'] = $length;
1070 if ($length)
1071 $this->_markers[$count]['data'] = fread($this->_fp, $length);
1076 $result = @fseek($this->_fp, $length, SEEK_CUR);
1079 for ($i = 0; $i < $length; $i++) {
1197 $length = ord(fgetc($this->_fp)) * 256 + ord(fgetc($this->_fp));
1202 if ($length < 2) {
1206 $length = $length - 2; // The length we got counts itself
1240 $origLength = $length;
1242 $length = strlen($data);
1246 $this->_writeJPEGMarker($marker, $length, $data, $origLength);
1267 * @param integer $length
1273 function _writeJPEGMarker($marker, $length, &$data, $origLength) {
1274 if ($length <= 0) {
1280 fputs($this->_fpout, chr((($length + 2) & 0x0000FF00) >> 8), 1);
1281 fputs($this->_fpout, chr((($length + 2) & 0x000000FF) >> 0), 1);
1285 fputs($this->_fpout, $data, $length);
1302 } else { // Copy only $length bytes
1303 $data = @fread($this->_fp, $length);
1304 fputs($this->_fpout, $data, $length);
2459 $pos += $strlen + 1 - ($strlen % 2); // The string is padded to even length, counting the length byte itself
2461 $length = $this->_getLong($data, $pos);
2474 $pos += $length;
2477 $this->_info['adobe']['ImageURL'] = $this->_getFixedString($data, $pos, $length);
2478 $pos += $length;
2491 $this->_info['adobe']['ThumbnailData'] = $this->_getFixedString($data, $pos, $length - 28);
2492 $pos += $length - 28;
2504 $this->_info['adobe']['raw'][$label]['data'] =& $this->_getFixedString($data, $basePos, $length);
2506 $pos = $basePos + $length + ($length % 2); // Even padding
2530 $length = $this->_getShort($data, $pos);
2549 $this->_info['iptc'][$label][ count($this->_info['iptc'][$label]) ] = $this->_getFixedString($data, $pos, $length);
2551 $this->_info['iptc'][$label] = $this->_getFixedString($data, $pos, $length);
2555 $pos = $basePos + $length; // No padding
2617 if (($len % 2) == 0) { // Even padding, including the length byte
3176 function & _getFixedString(&$data, $pos, $length = -1) {
3177 if ($length == -1) {
3178 $length = strlen($data) - $pos;
3181 $rv = substr($data, $pos, $length);
3182 if (strlen($rv) != $length) {
3185 $this->_fileName, strlen($rv), $length, $pos
3202 function _hexDump(&$data, $start = 0, $length = -1) {
3203 if (($length == -1) || (($length + $start) > strlen($data))) {
3206 $end = $start + $length;