Oliver Woodman e96e618046 Clean up expansion of sample buffers.
- 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.
2015-09-28 20:23:45 +01:00
..
2015-05-22 21:50:29 +01:00
2015-09-01 14:11:01 +01:00
2015-02-02 14:43:50 -08:00
2015-02-02 14:43:50 -08:00
2015-02-02 14:43:50 -08:00
2015-02-02 14:43:50 -08:00