Lines Matching defs:length
63 protected $length = 0;
103 $this->length = strlen($binary);
111 $this->length = 0;
123 while ($this->pos < $this->length) {
268 $length = strlen($expected);
269 if (substr($this->binary, $this->pos, $length) !== $expected) {
275 $this->pos += $length;
306 protected function parseLHexValue(int $length): string
311 if (strlen($matches[1]) !== $length) {
312 throw new SaslEncodingException(sprintf('Expected the hex value to be %s characters long.', $length));
335 protected function encodeLHexValue(string $data, int $length): string
337 if (strlen($data) !== $length) {
338 throw new SaslEncodingException(sprintf('Expected the encoded hex value to be %s characters long.', $length));