Files
platform-external-webrtc/webrtc/base
ossu 728012e49f Changed the semantics of Buffer::Clear to not alter the capacity
Also added a test for Clear to ensure this invariant holds.

With this change, it is easy to empty a Buffer and reuse its storage. Further down the line, code filling data into a Buffer could be written to just append to it, with the caller determining if the Buffer should first be cleared or not.

There is currently only one use of Buffer::Clear (in AudioEncoderCopyRed::Reset()) and it should benefit from the change, by not requiring a reallocation after Reset.

Review URL: https://codereview.webrtc.org/1707693002

Cr-Commit-Position: refs/heads/master@{#11680}
2016-02-19 10:38:37 +00:00
..
2016-02-03 09:51:22 +00:00
2016-02-17 22:45:00 +00:00
2015-09-24 13:07:04 +00:00
2015-09-24 13:07:04 +00:00
2015-04-02 10:31:00 +00:00
2015-06-10 18:33:24 +00:00
2015-12-17 02:38:34 +00:00
2015-12-28 22:07:05 +00:00
2015-12-28 22:07:05 +00:00
2015-05-21 11:50:41 +00:00
2015-05-21 11:50:41 +00:00
2015-12-28 22:07:05 +00:00
2015-04-01 22:25:29 +00:00
2016-01-04 21:44:16 +00:00
2015-12-16 19:44:39 +00:00
2015-11-26 16:45:57 +00:00
2016-01-04 21:44:16 +00:00
2016-02-02 16:34:16 +00:00
2015-11-26 16:45:57 +00:00
2015-11-26 16:45:57 +00:00
2015-10-07 11:58:00 +00:00
2015-09-22 18:58:13 +00:00
2016-01-04 21:44:16 +00:00
2016-01-04 21:44:16 +00:00
2016-01-14 19:01:25 +00:00