Exemplo n.º 1
0
 function parse_null_terminated_string($attribute_name)
 {
     list($result, $length) = Packet::unmarshall_null_terminated_string(substr($this->binary, $this->parse_position));
     $this->attributes[$attribute_name] = substr($this->binary, $this->parse_position, $length - 1);
     $this->parse_position += $length;
 }