Details
-
Suggestion
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
6.6.0 FF
-
None
Description
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!