parse() статический публичный Метод

Partial body lengths based on https://github.com/toofishes/python-pgpdump/blob/master/pgpdump/packet.py
См. также: http://tools.ietf.org/html/rfc4880#section-4.2
static public parse ( &$input )
Пример #1
0
 static function parse_string($input)
 {
     $msg = new self();
     while (($length = strlen($input)) > 0) {
         if ($packet = OpenPGP_Packet::parse($input)) {
             $msg[] = $packet;
         }
         if ($length == strlen($input)) {
             // is parsing stuck?
             break;
         }
     }
     return $msg;
 }