commit | ff082a001e18e3d8a24e540f3fe1d7ee2be85ca1 | [log] [tgz] |
---|---|---|
author | vasilvv <vasilvv@google.com> | Tue Dec 24 22:07:51 2019 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Dec 24 22:08:27 2019 -0800 |
tree | 36f8dc52159704fcdef0b143c925ac8b0e4b1e77 | |
parent | 85240a12ed2b9ccb08ae449bca1bbf9eb93c8a12 [diff] |
Add a proper API to create memslices from the QUIC code. Current API provides an (allocator, size) constructor. However, this just creates a buffer with random data in it and no way to change it, since memslices are read-only. Current code uses const_cast; this CL creates a proper API and updates all existing call sites to use it. gfe-relnote: n/a (no functional change) PiperOrigin-RevId: 287072774 Change-Id: Ie4dd2eae6db2ec91b087f5d41887ea3948ee411a