8000 Add max_item_size() to etl::ipool by rolandreichweinbmw · Pull Request #1001 · ETLCPP/etl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add max_item_size() to etl::ipool #1001

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

Conversation

rolandreichweinbmw
Copy link
Contributor

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
jwellbelove added a commit that referenced this pull request Jan 20, 2025
jwellbelove pushed a commit that referenced this pull request Jan 31, 2025
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
0