Skip to content

reserve function to reserve initial space for raw buffer#16

Merged
richiware merged 1 commit intoeProsima:masterfrom
Karsten1987:expose_cdr
May 21, 2018
Merged

reserve function to reserve initial space for raw buffer#16
richiware merged 1 commit intoeProsima:masterfrom
Karsten1987:expose_cdr

Conversation

@Karsten1987
Copy link
Copy Markdown
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