MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / int2bytes

Function int2bytes

webiojs/src/utils.ts:173–179  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

171}
172
173function int2bytes(num: number) {
174 const buf = new ArrayBuffer(8);
175 const dataView = new DataView(buf);
176 dataView.setUint32(0, (num / 4294967296) | 0); // 4294967296 == 2^32
177 dataView.setUint32(4, num | 0);
178 return buf;
179}
180
181export function is_mobile() {
182 // @ts-ignore

Callers 2

serialize_fileFunction · 0.85
serialize_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…