Lines Matching refs:binary

81      * Used to represent a bool false binary string.
86 * Used to represent a bool true binary string.
136 protected $binary;
150 public function decode($binary, array $tagMap = []): AbstractType
152 $this->startEncoding($binary, $tagMap);
300 protected function startEncoding(string $binary, array $tagMap): void
303 $this->binary = $binary;
306 $this->maxLen = strlen($this->binary);
312 $this->binary = null;
332 $tag = ord($this->binary[$this->pos++]);
353 $length = ord($this->binary[$this->pos++]);
376 $type = new IncompleteType(substr($this->binary, $this->pos, $length), $tagNumber, $class, $isConstructed);
438 $type = EncodedType\OctetStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
442 $type = EncodedType\GeneralStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
446 $type = EncodedType\VisibleStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
450 $type = EncodedType\BmpStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
454 $type = EncodedType\CharacterStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
458 $type = EncodedType\UniversalStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
462 $type = EncodedType\GraphicStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
466 $type = EncodedType\VideotexStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
470 $type = EncodedType\TeletexStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
474 $type = EncodedType\PrintableStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
478 $type = EncodedType\NumericStringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
482 $type = EncodedType\IA5StringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
486 $type = EncodedType\Utf8StringType::withTag($tagNumber, $class, $isConstructed, substr($this->binary, $this->pos, $length));
531 $length = $length * 256 + ord($this->binary[$this->pos]);
563 $orVal = (ord($this->binary[$this->pos]) & 0x7f);
570 if ((ord($this->binary[$this->pos]) & 0x80) === 0) {
921 $bytes = substr($this->binary, $this->pos, $length);
1029 return ($this->binary[$this->pos++] !== self::BOOL_FALSE);
1040 $unused = ord($this->binary[$this->pos++]);
1071 $octet = sprintf("%08d", decbin(ord($this->binary[$this->pos])));
1092 $bytes = substr($this->binary, $this->pos, $length);
1144 $ident = ord($this->binary[$this->pos++]);