Lines Matching defs:data
36 * A segment of character/binary/control data in a QR Code symbol.
38 * The mid-level way to create a segment is to take the payload data
43 * Even in the most favorable conditions, a QR Code can only hold 7089 characters of data.
51 * Describes how a segment's data bits are interpreted. Immutable.
98 * Returns a segment representing the given binary data encoded in
102 public: static QrSegment makeBytes(const std::vector<std::uint8_t> &data);
156 /* The length of this segment's unencoded data. Measured in characters for
158 * Always zero or positive. Not the same as the data's bit length.
162 /* The data bits of this segment. Accessed through getData(). */
163 private: std::vector<bool> data;
169 * Creates a new QR Code segment with the given attributes and data.
177 * Creates a new QR Code segment with the given parameters and data.
199 * Returns the data bits of this segment.
224 * The class provides static factory functions to create a QR Code from text or binary data.
229 * - High level: Take the payload data and call QrCode::encodeText() or QrCode::encodeBinary().
231 * - Low level: Custom-make the array of data codeword bytes (including
269 * Returns a QR Code representing the given binary data at the given error correction level.
274 public: static QrCode encodeBinary(const std::vector<std::uint8_t> &data, Ecc ecl);
330 * error correction level, data codeword bytes, and mask number.
410 // Returns a new byte string representing the given data with the appropriate error correction
412 private: std::vector<std::uint8_t> addEccAndInterleave(const std::vector<std::uint8_t> &data) const;
415 // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
416 // data area of this QR Code. Function modules need to be marked off before this is called.
417 private: void drawCodewords(const std::vector<std::uint8_t> &data);
442 // Returns the number of data bits that can be stored in a QR Code of the given version number, after
448 // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
459 // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.
460 private: static std::vector<std::uint8_t> reedSolomonComputeRemainder(const std::vector<std::uint8_t> &data, const std::vector<std::uint8_t> &divisor);
511 * Thrown when the supplied data does not fit any QR Code version. Ways to handle this exception include:
516 * - Split the text data into better or optimal segments in order to reduce the number of bits required.
517 * - Change the text or binary data to be shorter.