This should be computable from the base addresses returned when allocating 
successive objects.


-----Ursprüngliche Nachricht-----
Von: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im 
Auftrag von Philip Bennefall
Gesendet: Montag, 05. September 2016 08:22
An: General Discussion of SQLite Database <sqlite-users@mailinglists.sqlite.org>
Betreff: [sqlite] Question about Memsys5 Internals

Hi all,

First, if this is the wrong place to ask this question, please let me know and 
I will ask elsewhere.

I have a question about memsys5, which I am using as a general purpose memory 
pool in my application. I am allocating fixed size objects, and I have set mReq 
to the size of that object (it is a power of 2). I know that I will only be 
using N objects at any given time. Is there an easy way to calculate how much 
space I need to reserve in order to hold N objects simultaneously? If I 
allocate a total of N*sizeof(object) bytes, it doesn't seem to let me store N 
objects at the same time. Am I doing something wrong or is this expected?

Thanks in advance for any tips!

Kind regards,

Philip Bennefall
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


___________________________________________
 Gunter Hick
Software Engineer
Scientific Games International GmbH
FN 157284 a, HG Wien
Klitschgasse 2-4, A-1130 Vienna, Austria
Tel: +43 1 80100 0
E-Mail: h...@scigames.at

This communication (including any attachments) is intended for the use of the 
intended recipient(s) only and may contain information that is confidential, 
privileged or legally protected. Any unauthorized use or dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately notify the sender by return e-mail message and 
delete all copies of the original communication. Thank you for your cooperation.


_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to