Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce hex::display for Display’ing binary data in hex #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 19, 2023

  1. Introduce hex::display for Display’ing binary data in hex

    encode method allocates a new string which is wasteful if all one
    wants to do is display the binary data using format! or related
    macro.
    
    Introduce hex::Display wrapper with hex::display as its constructor
    which wraps the binary data in an object that implements Display,
    LowerHex, UpperHex and Debug and formats the data as hex.  However,
    as it uses buffers on stack, it performs no allocations.
    mina86 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    1b83391 View commit details
    Browse the repository at this point in the history