Skip to content

Ability to limit number of indices #23

Open
@fidian

Description

@fidian

When sending a large file with thousands of blocks, it doesn't make sense to have the slim possibility of generating data with hundreds or thousands of indices. The generated QR code data is Base64, so every index (four bytes) adds 5.333 characters to the output for the QR code. With the default slice of 1000, adding 250 indices to the payload will double the amount of data to be encoded into a QR code. These problematic frames will fail to encode when they are too large.

I propose a limit to the number of indices per encoded chunk. This would free up bits in the first byte, potentially allowing completion of #13 without increasing the encoded data size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions