Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max_item_size() to etl::ipool #1001

Conversation

rolandreichweinbmw
Copy link

etl::ipool is defined by an underlying buffer with Max_Size * Item_Size bytes.

While Max_Size is accessible via max_size() and capacity(), Item_Size is not accessible publicly.

However, it would be helpful in a scenario where items are allocated dynamically, e.g. dynamically sized messages, with different header and payload sizes.

This pull request provides max_item_size() for exactly this reason.

@jwellbelove jwellbelove changed the base branch from master to pull-request/#1001-Add-max_item_size()-to-etl-ipool December 26, 2024 13:15
@jwellbelove jwellbelove merged commit f0ebf26 into ETLCPP:pull-request/#1001-Add-max_item_size()-to-etl-ipool Dec 26, 2024
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants