(data: Readonly<Array<byte>>, ecl: QrCode.Ecc)
| 52 | // bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output. |
| 53 | // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version. |
| 54 | public static encodeBinary(data: Readonly<Array<byte>>, ecl: QrCode.Ecc): QrCode { |
| 55 | const seg: QrSegment = qrcodegen.QrSegment.makeBytes(data); |
| 56 | return QrCode.encodeSegments([seg], ecl); |
| 57 | } |
| 58 | |
| 59 | |
| 60 | /*-- Static factory functions (mid level) --*/ |
nothing calls this directly
no test coverage detected