Lines Matching refs:len
595 $len = 0;
599 list($status, $ver, $len) = array_values(unpack("n2a/Nb", $header));
600 $left = $len;
614 if (!$response || $read != $len) {
615 $this->_error = $len
616 ? "failed to read searchd response (status=$status, ver=$ver, len=$len, read=$read)"
1070 $len = 4 + strlen($req);
1071 …$req = pack("nnNN", SEARCHD_COMMAND_SEARCH, VER_COMMAND_SEARCH, $len, $nreqs) . $req; // add header
1074 !($this->_Send($fp, $req, $len + 8)) ||
1107 list(, $len) = unpack("N*", substr($response, $p, 4));
1109 $message = substr($response, $p, $len);
1110 $p += $len;
1127 list(, $len) = unpack("N*", substr($response, $p, 4));
1129 $fields[] = substr($response, $p, $len);
1130 $p += $len;
1137 list(, $len) = unpack("N*", substr($response, $p, 4));
1139 $attr = substr($response, $p, $len);
1140 $p += $len;
1230 list(, $len) = unpack("N*", substr($response, $p, 4));
1232 $word = substr($response, $p, $len);
1233 $p += $len;
1314 $len = strlen($req);
1315 $req = pack("nnN", SEARCHD_COMMAND_EXCERPT, VER_COMMAND_EXCERPT, $len) . $req; // add header
1317 !($this->_Send($fp, $req, $len + 8)) ||
1332 list(, $len) = unpack("N*", substr($response, $pos, 4));
1335 if ($pos + $len > $rlen) {
1340 $res[] = $len ? substr($response, $pos, $len) : "";
1341 $pos += $len;
1382 $len = strlen($req);
1383 $req = pack("nnN", SEARCHD_COMMAND_KEYWORDS, VER_COMMAND_KEYWORDS, $len) . $req; // add header
1385 !($this->_Send($fp, $req, $len + 8)) ||
1402 list(, $len) = unpack("N*", substr($response, $pos, 4));
1404 $tokenized = $len ? substr($response, $pos, $len) : "";
1405 $pos += $len;
1407 list(, $len) = unpack("N*", substr($response, $pos, 4));
1409 $normalized = $len ? substr($response, $pos, $len) : "";
1410 $pos += $len;
1495 $len = strlen($req);
1496 $req = pack("nnN", SEARCHD_COMMAND_UPDATE, VER_COMMAND_UPDATE, $len) . $req; // add header
1497 if (!$this->_Send($fp, $req, $len + 8))
1572 list(, $len) = unpack("N*", substr($response, $p, 4));
1574 $res[$i][] = substr($response, $p, $len);
1575 $p += $len;