-
Clean up expansion of sample buffers. · e96e6180
- The old approach was technically incorrect, because the checks were "capacity < sampleSize" and hence neglected the fact that the buffer position may be greater than 0 (e.g. if the caller wants to prefix the sample with some additional data). - Also proactively throw an exception if the buffer is too small, rather than wait for the failure when we actually do the write.
Oliver Woodman committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| androidTest | Loading commit data... | |
| main | Loading commit data... |