View Source QRCode.ErrorCorrection (QRCode v3.0.0)

Error correction code words and block information.

Link to this section Summary

Link to this section Types

@type codewords() :: groups()
@type groups() :: {[[], ...], [[]]}
@type t() :: %QRCode.ErrorCorrection{
  blocks_in_group1: ExMaybe.t(integer()),
  blocks_in_group2: ExMaybe.t(integer()),
  codewords: ExMaybe.t(codewords()),
  codewords_per_block_in_group1: ExMaybe.t(integer()),
  codewords_per_block_in_group2: ExMaybe.t(integer()),
  ec_codewrods_per_block: ExMaybe.t(integer()),
  groups: ExMaybe.t(groups())
}

Link to this section Functions

@spec put(QRCode.QR.t()) :: QRCode.QR.t()
Link to this function

total_data_codewords(qr)

View Source
@spec total_data_codewords(QRCode.QR.t()) :: integer()