@dxos/util 0.6.13-main.548ca8d → 0.6.13-main.ed424a1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1833,6 +1833,21 @@ var WeakDictionary = class {
1833
1833
  this._finalization.unregister(value);
1834
1834
  }
1835
1835
  };
1836
+
1837
+ // packages/common/util/src/array-to-hex.ts
1838
+ var byteToHex = [];
1839
+ for (let n = 0; n <= 255; ++n) {
1840
+ const hexOctet = n.toString(16).padStart(2, "0");
1841
+ byteToHex.push(hexOctet);
1842
+ }
1843
+ var arrayToHex = (buf) => {
1844
+ const buff = new Uint8Array(buf);
1845
+ const hexOctets = [];
1846
+ for (let i = 0; i < buff.length; ++i) {
1847
+ hexOctets.push(byteToHex[buff[i]]);
1848
+ }
1849
+ return hexOctets.join("");
1850
+ };
1836
1851
  export {
1837
1852
  BitField,
1838
1853
  Callback,
@@ -1848,6 +1863,7 @@ export {
1848
1863
  accessBy,
1849
1864
  arrayMove,
1850
1865
  arrayToBuffer,
1866
+ arrayToHex,
1851
1867
  arrayToString,
1852
1868
  arraysEqual,
1853
1869
  boolGuard,