1window.copyHtmlToClipboard = async (html) => { 2 const blob = new Blob([html], { type: 'text/html' }); 3 const item = new ClipboardItem({ 'text/html': blob }); 4 await navigator.clipboard.write([item]); 5} 6 7window.downloadFileFromStream = async (fileName, contentStreamReference) => { 8 const arrayBuffer = await contentStreamReference.arrayBuffer(); 9 const blob = new Blob([arrayBuffer]); 10 const url = URL.createObjectURL(blob); 11 const anchorElement = document.createElement('a'); 12 anchorElement.href = url; 13 anchorElement.download = fileName ?? ''; 14 anchorElement.click(); 15 anchorElement.remove(); 16 URL.revokeObjectURL(url); 17}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.