Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.17.0
-
None
Description
My main use case for TMemoryBuffer was that I wanted to be able to call resetBuffer() on OBSERVE buffers and reuse the contents for test cases over and over. While the default resetBuffer() cannot be used for that purpose, the same result can be achieved by calling resetBuffer(ro_mem, ro_mem_size, OBSERVE) as well, so the workaround is fairly trivial.
While the former implementation would be more convenient in some cases, it makes more sense to have consistent behaviour for all resetBuffer() implementations.
Added test cases to clarify the effect of MemoryPolicy on TMemoryBuffer behaviour.
Attachments
Issue Links
- links to