[Webkit-unassigned] [Bug 241743] New: Introducing RawHex, a counterpart to RawPointer.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 18 01:52:51 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241743

            Bug ID: 241743
           Summary: Introducing RawHex, a counterpart to RawPointer.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

RawHex is for dumping integral values in hex just like RawPointer is for dumping pointers.  And similarly, RawHex is meant to be used with PrintStream.

For example:
    dataLog(RawHex(42));        // prints 0x2a
    dataLog(RawHex(0x42);       // prints 0x42
    dataLog(RawHex(256));       // prints 0x100
    dataLog(RawHex(65536);      // prints 0x10000
    dataLog(RawHex(4294967295); // prints 0xffffffff
    dataLog(RawHex(4294967296); // prints 0x100000000
    dataLog(RawHex(INT8_MIN);   // prints 0x80
    dataLog(RawHex(INT16_MIN);  // prints 0x8000
    dataLog(RawHex(INT32_MIN);  // prints 0x80000000
    dataLog(RawHex(-1);         // prints 0xffffffff
    dataLog(RawHex(INT64_MIN);  // prints 0x8000000000000000
    dataLog(RawHex(INT64_MAX);  // prints 0x7fffffffffffffff
    dataLog(RawHex(UINT64_MAX); // prints 0xffffffffffffffff

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220618/ee13d1eb/attachment.htm>


More information about the webkit-unassigned mailing list