Lines Matching refs:len

289             $len = $data['len'];
290 $left = $len;
299 $status = SEARCHD_ERROR; $ver = 0; $len = 0;
305 if (!$response && $len > 0) {
537 $len = 4 + strlen($req);
538 $req = pack("nnNN", SEARCHD_COMMAND_SEARCH, VER_COMMAND_SEARCH, $len, $nreqs) . $req;
540 …if (!$this->_Send($fp, $req, $len + 8) || !($response = $this->_GetResponse($fp, VER_COMMAND_SEARC…
562 $len = unpack("N", substr($response, $p, 4))[1]; $p += 4;
563 $message = substr($response, $p, $len); $p += $len;
571 $len = unpack("N", substr($response, $p, 4))[1]; $p += 4;
572 $fields[] = substr($response, $p, $len); $p += $len;
579 $len = unpack("N", substr($response, $p, 4))[1]; $p += 4;
580 $attr = substr($response, $p, $len); $p += $len;
634 $len = unpack("N", substr($response, $p, 4))[1]; $p += 4;
635 $word = substr($response, $p, $len); $p += $len;
671 $len = strlen($req);
672 $req = pack("nnN", SEARCHD_COMMAND_EXCERPT, VER_COMMAND_EXCERPT, $len) . $req;
673 …if (!$this->_Send($fp, $req, $len + 8) || !($response = $this->_GetResponse($fp, VER_COMMAND_EXCER…
679 $len = unpack("N", substr($response, $pos, 4))[1]; $pos += 4;
680 $res[] = substr($response, $pos, $len); $pos += $len;
694 $len = strlen($req);
695 $req = pack("nnN", SEARCHD_COMMAND_KEYWORDS, VER_COMMAND_KEYWORDS, $len) . $req;
696 …if (!$this->_Send($fp, $req, $len + 8) || !($response = $this->_GetResponse($fp, VER_COMMAND_KEYWO…
703 $len = unpack("N", substr($response, $pos, 4))[1]; $pos += 4;
704 $tokenized = substr($response, $pos, $len); $pos += $len;
705 $len = unpack("N", substr($response, $pos, 4))[1]; $pos += 4;
706 $normalized = substr($response, $pos, $len); $pos += $len;
741 $len = strlen($req);
742 $req = pack("nnN", SEARCHD_COMMAND_UPDATE, VER_COMMAND_UPDATE, $len) . $req;
743 …if (!$this->_Send($fp, $req, $len + 8) || !($response = $this->_GetResponse($fp, VER_COMMAND_UPDAT…
762 $len = unpack("N", substr($response, $p, 4))[1]; $p += 4;
763 $res[$i][] = substr($response, $p, $len); $p += $len;