Function: readUrl()
ts
function readUrl(cursor): DataEntryUrlBox;Defined in: readers/readUrl.ts:20
Read the url box (DataEntryUrlBox).
Parameters
cursor
The read cursor at the first byte after the box header
Returns
A parsed DataEntryUrlBox
Example
ts
// A url box with flags 0 and the UTF-8 bytes of the location 'é日😀'.
const bytes = new Uint8Array([
0, 0, 0, 22, 117, 114, 108, 32, 0, 0, 0, 0, 0xc3, 0xa9, 0xe6, 0x97, 0xa5, 0xf0, 0x9f, 0x98,
0x80, 0,
])
const [url] = readIsoBoxes(bytes, { readers: { 'url ': readUrl } })