[Issue 2117] New: Please add more byteswapping support

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 20 11:37:21 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2117

           Summary: Please add more byteswapping support
           Product: D
           Version: 2.014
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jlquinn at optonline.net


Right now there is limited support for byteswapping.  std.intrinsic includes
bswap(uint), and std.system includes a predefined constant for system
endianness.

It would be really helpful to have bswap equivalents for all basic datatypes,
as well as routines to swap between native endianness and explicit big or
little endian, ala ntohl, ntohs, htonl, htons

A related thing that would come in handy is byteswapping mmap support.


-- 



More information about the Digitalmars-d-bugs mailing list