3 ms·
If you do that then the size() function becomes a problem. The original implementation relies on unsigned integer wrap-around to give the proper result when wri
by mark-r 10y ago
If you do that then the size() function becomes a problem. The original implementation relies on unsigned integer wrap-around to give the proper result when write < read.
- caf 10y agoThat is fairly easy to fix, though. Add N to the size value you get until its non-negative.