Skip to content

Unnecessary octet-masking #2

@issuefiler

Description

@issuefiler

Unnecessary & 255

output[index++] = (value >>> (bits - 8)) & 255

Assignment of Uint8Array elements only takes the least significant octet. Unlike Uint8ClampedArray, it does not clamp the value; it truncates.

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