if (!
$this->
EnsureBufferHasEnoughData()) { $this->current_offset = PHP_INT_MAX; // do not exit parser right now, allow to finish current loop to gather maximum information
return false;
} $element = array
();
// set offset
$element['offset'
] =
$this->current_offset;
// get ID
$element['id'
] =
$this->
readEBMLint();
// get name
$element['id_name'
] = self::
EBMLidName($element['id'
]);
// get length
$element['length'
] =
$this->
readEBMLint();
// get end offset
$element['end'
] =
$this->current_offset +
$element['length'
];
// get raw data