8000 Remove magic numbers in codec functions · Issue #9 · jmcph4/azorian · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Remove magic numbers in codec functions #9
Open
@jmcph4

Description

@jmcph4

Often, as a quick validation check, the length of a az_bytearray_t will be checked to ensure it's at least three bytes long, due to inference from the actual multiformat specifications themselves. While this is technically valid, the current codebase is now littered with nasty magic numbers.

These belong in a macro constant of some sort, perhaps defined in src/azorian.h.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0