MCPcopy Create free account
hub / github.com/breck7/scroll / encodeBinary

Method encodeBinary

external/.qrcodegen.js:9–12  ·  view source on GitHub ↗
(r, n)

Source from the content-addressed store, hash-verified

7 return e.encodeSegments(o, n)
8 }
9 static encodeBinary(r, n) {
10 const o = t.QrSegment.makeBytes(r)
11 return e.encodeSegments([o], n)
12 }
13 static encodeSegments(t, n, i = 1, a = 40, l = -1, h = !0) {
14 if (!(e.MIN_VERSION <= i && i <= a && a <= e.MAX_VERSION) || l < -1 || l > 7) throw new RangeError("Invalid value")
15 let u, c

Callers

nothing calls this directly

Calls 2

makeBytesMethod · 0.80
encodeSegmentsMethod · 0.80

Tested by

no test coverage detected