Lines Matching refs:pos

121     protected $pos;
305 $this->pos = 0;
314 $this->lastPos = $this->pos;
315 $this->pos = 0;
332 $tag = ord($this->binary[$this->pos++]);
353 $length = ord($this->binary[$this->pos++]);
362 if (($this->maxLen - $this->pos) < $length) {
366 ($this->maxLen - $this->pos)
376 $type = new IncompleteType(substr($this->binary, $this->pos, $length), $tagNumber, $class, $isConstructed);
377 $this->pos += $length;
438 $type = EncodedType\OctetStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
439 $this->pos += $length;
442 $type = EncodedType\GeneralStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
443 $this->pos += $length;
446 $type = EncodedType\VisibleStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
447 $this->pos += $length;
450 $type = EncodedType\BmpStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
451 $this->pos += $length;
454 $type = EncodedType\CharacterStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
455 $this->pos += $length;
458 $type = EncodedType\UniversalStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
459 $this->pos += $length;
462 $type = EncodedType\GraphicStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
463 $this->pos += $length;
466 $type = EncodedType\VideotexStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
467 $this->pos += $length;
470 $type = EncodedType\TeletexStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
471 $this->pos += $length;
474 $type = EncodedType\PrintableStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
475 $this->pos += $length;
478 $type = EncodedType\NumericStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
479 $this->pos += $length;
482 $type = EncodedType\IA5StringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
483 $this->pos += $length;
486 $type = EncodedType\Utf8StringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
487 $this->pos += $length;
523 if ($lengthOfLength > ($this->maxLen - $this->pos)) {
526 $endAt = $this->pos + $lengthOfLength;
530 for ($this->pos; $this->pos < $endAt; $this->pos++) {
531 $length = $length * 256 + ord($this->binary[$this->pos]);
549 for ($this->pos; $this->pos < $this->maxLen; $this->pos++) {
563 $orVal = (ord($this->binary[$this->pos]) & 0x7f);
570 if ((ord($this->binary[$this->pos]) & 0x80) === 0) {
571 $this->pos++;
921 $bytes = substr($this->binary, $this->pos, $length);
922 $this->pos += $length;
984 $startedAt = $this->pos;
998 $oidLength = $length - ($this->pos - $startedAt);
1015 $endAt = $this->pos + $length;
1017 while ($this->pos < $endAt) {
1029 return ($this->binary[$this->pos++] !== self::BOOL_FALSE);
1040 $unused = ord($this->binary[$this->pos++]);
1068 $endAt = $this->pos + $length;
1070 for ($this->pos; $this->pos < $endAt; $this->pos++) {
1071 $octet = sprintf("%08d", decbin(ord($this->binary[$this->pos])));
1072 if ($this->pos === ($endAt - 1) && $unused) {
1092 $bytes = substr($this->binary, $this->pos, $length);
1093 $this->pos += $length;
1144 $ident = ord($this->binary[$this->pos++]);
1205 $endAt = $this->pos + $length;
1207 while ($this->pos < $endAt) {