Encoder
object Encoder
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Append "bytes" in "mode" mode (encoding) into "bits". On success, store the result in "bits".
Link copied to clipboard
Link copied to clipboard
Append length info. On success, store the result in "bits".
Link copied to clipboard
fun encode(content: String, ecLevel: ErrorCorrectionLevel, hints: HashMap<EncodeHintType, Any?>? = null): QRCode
Link copied to clipboard
fun getNumDataBytesAndNumECBytesForBlockID(numTotalBytes: Int, numDataBytes: Int, numRSBlocks: Int, blockID: Int, numDataBytesInBlock: IntArray, numECBytesInBlock: IntArray)
Get number of data bytes and number of error correction bytes for block id "blockID". Store the result in "numDataBytesInBlock", and "numECBytesInBlock". See table 12 in 8.5.1 of JISX0510:2004 (p.30)
Link copied to clipboard
Link copied to clipboard
Terminate bits as described in 8.4.8 and 8.4.9 of JISX0510:2004 (p.24).