UNPKG

@joergmittaglawo/dmvconfig

Version:

DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.

1 lines 441 B
import{assert as t}from"./node_util";export function indices(t){const e=t.length;let o=[];for(let r=0;r<e;r++){let e=4*r;const n=t.charCodeAt(r);n>="0".charCodeAt(0)&&n<58||"A".charCodeAt(0);let c=n>=65?n-55:n-48;for(;c>0;)1==(1&c)&&o.push(e),c>>>=1,e+=1}return o}export function has_index(t,e){const o=e>>>2;if(o>=t.length)return!1;const r=t.charCodeAt(o);r>="0".charCodeAt(0)&&r<58||"A".charCodeAt(0);return 0!=((r>=65?r-55:r-48)>>>e%4&1)}