Skip to content

Confusing function name in C++ #1

@billtubbs

Description

@billtubbs

Thanks for sharing this library.

Is there a reason this function is named write_u32 if the argument is a 16-bit variable?

void write_u32(fstream &file, uint16_t num)

I expected it to be called write_u16 or for the argument to be uint32_t.

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