Skip to content

Questions about the calculation results of CRC32.buf and CRC32.str #24

@adonis-lsh

Description

@adonis-lsh

/* Frequently faster in NodeJS */
crc32 = CRC32.buf(Buffer.from(bstr, "binary"), 0);
crc32 = CRC32.str(bstr, 0);

Whether the calculation result of CRC32.buf in the node and the calculation result of CRC32.str in the scheduler are always the same with the same parameters?I want to use one on the server and one on the browser, but I'm afraid that the two methods will calculate the same string inconsistently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions