Skip to content

Remove byte[] allocation in QRCodeData.SaveRawData #705

Description

@Neme12

Currently, QRCodeData.SaveRawData first stores the data into a byte array, and then calls File.WriteAllBytes. I think it would be better to avoid this allocation altogether, by having GetRawData take a Stream as input and write into it instead of allocating an array.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions