Provide feature of extracting Raw Data
There is no method of getting the uncorrected and unmasked raw data of a QR- Code, as these steps are done in encapsulated in one method, thus not exposing Raw Data. However, there should be a public getter Method for it. It would benefit the library for offering it, as one has more freedom to inspect read data.
This pull request to src/decode.rs and src/lib.rs introduces several changes to enhance functionality and improve code readability. The most important changes include making the data field in RawData public, adding a new method to extract raw data from a QR code, and modifying existing functions to handle an optional mask removal.
Functionality Enhancements:
-
src/decode.rs: Added a new methodget_rawto extract raw data from a QR code. -
src/lib.rs: Added a new methodget_raw_datato the public API to expose theget_rawfunctionality.
Code Modifications:
-
src/decode.rs: Modifiedread_dataandread_bitfunctions to handle an optionalremove_maskparameter. [1] [2] [3] -
src/decode.rs: Made thedatafield inRawDatapublic to allow external access.
Minor Changes:
-
src/decode.rs: Added missing newlines for better readability. [1] [2] [3] [4] -
src/lib.rs: Updated thepub usestatement to includeRawData.
Please rebase and fix the formatting. Then I'll happily merge this.
Im sorry if I caused some chaos, but is it now appropriate?
If squashed all commits and added some docs in be6202c0bba4650c74fdfccdadf69c4fe3894c65