fn
encodeBinary
testedReturns a QR Code representing the given binary data at the given error correction level. This function always encodes using the binary segment mode, not any text mode. The maximum number of bytes allowed is 2953.
Signature
ts
export function encodeBinary(data: readonly number[], ecl: QrCodeEcc): QrCode{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
data | readonly number[] | — |
ecl | QrCodeEcc | — |
Returns
QrCode