This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Read an EBML tag header or length and return their respective values into | |
* single numbers. | |
* | |
* @example | |
* var tagHeader = new Uint8Array([0x1A, 0x45, 0xDF, 0xA3, 0x01, 0x00, 0x00, | |
* 0x00, 0x00, 0x00, 0x00, 0x1F]); | |
* var tagId = readVariableInt(tagHeader, 4, 0); | |
* console.log('The current tag ID is: ', tagId.value, ', skipping ', tagId.size, ' bytes.'); | |
* // The current tag ID is: 172351395, skipping 4 bytes. |
OlderNewer