Results 1 to 3 of 3

Thread: QFileDevice::map()

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default QFileDevice::map()

    Hello friends,
    as far as I read the docu correct, it is not possible to map an utf8 coded file?!
    The map function returns a char*.

    Is my assumption correct..?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QFileDevice::map()

    A file is just a collection of bytes. This function returns a pointer to the location in memory of specified bytes of your file. How you choose to interpret those bytes is entirely up to you.

  3. #3
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: QFileDevice::map()

    Ok, thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.