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

reserve function to reserve initial space for raw buffer #16

Merged
merged 1 commit into from
May 21, 2018

Conversation

Karsten1987
Copy link
Contributor

Connects to #15

As I suppose that resizing to 200 has a special meaning, this PR adds a reserve function which lets you pre-initialize the internal memory to a value less than 200.
It only allows so if the internal memory was not set externally in the constructor as well as was not pre-initialized before (i.e. m_Buffer == NULL)

@Karsten1987 Karsten1987 changed the title reserve function to reserver initial space for raw buffer reserve function to reserve initial space for raw buffer May 7, 2018
@richiware richiware merged commit e986a9e into eProsima:master May 21, 2018
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