Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114361

Need to borrow allocate memory for QT arrays

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.6.0 FF
    • Core: I/O
    • None
    • All

      Hello,

       

      I'm writting a Qt  MQ API to communicate seemlessly with any kind of MQ platform such as kafka pulsar rabbitmq ... through any protocol but i'm encountring an issue with Qt IO api.

      I need to be able to borrow allocate memory from the API's message arena and pass it to  QIODevice's ringbuffers ie to QByteArray's QByteArrayData pointer in order to have a QIODevice accessible mq message payload. The use of arena is not avoidable in this situation as the advanced user can (and will) create simultaneous instances of lients to communicate with multiples brokers and will hence look forward to consume->sync->produce  the data between these broker which will make the memory release costly for embedded devices at this scale.

      I still can't wrap my head around implementing a third party IOBuffer  as this will break compatibility with a typical Qt user who would probably rely on QIODevice in his code to consume the message's payload as we all do.

      So the question is, are you open to integrate a proposal for QByteArray (QArrayData) allocation model to be strategy based for the user to provide external memory ? 

      thanks!

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            qtanything George Ransdall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes