MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / roundUpToMultipleOf4

Function roundUpToMultipleOf4

src/data/createDataStore.ts:55–57  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

53const MIN_BUFFER_BYTES = 4;
54
55function roundUpToMultipleOf4(bytes: number): number {
56 return (bytes + 3) & ~3;
57}
58
59function nextPow2(bytes: number): number {
60 if (!Number.isFinite(bytes) || bytes <= 0) return 1;

Callers 3

setSeriesFunction · 0.85
appendSeriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected