9 Commits

Author SHA1 Message Date
Ronny Nilsson
8971bf27b0 Minor coding style cleanups. 2018-06-05 15:26:14 +02:00
Ronny Nilsson
e3aec29b58 Comment 2018-06-05 15:25:59 +02:00
Ronny Nilsson
1d717c4b5f If rewinded is less than count the buffer is full.
Nothing more to do. Prove my premise with an assert.
2018-06-05 15:25:19 +02:00
Ronny Nilsson
cdd93ced7f Early return if buffer is already full. 2018-06-05 15:21:47 +02:00
Ronny Nilsson
04178a4681 Out of bounds check didn't work for a fully rewinded buffer. 2018-06-05 15:20:34 +02:00
Ronny Nilsson
8e1748eae8 Move the maximum read size higher up to reduce code duplication. 2018-06-05 15:17:49 +02:00
Ronny Nilsson
5c692193e3 The conditional clause never occur. Prove my premise with an assert. 2018-06-05 15:13:40 +02:00
Jonas Höglund
cd0a739800 Rename buffer functions 2017-12-08 17:17:18 +01:00
Jonas Höglund
385b1063b0 Add pe_buffer 2017-12-08 16:37:48 +01:00