export SumSz

Signed-off-by: Tom Grennan <tom@apptimist.co>
reset read offset and write total on Pull

Signed-off-by: Tom Grennan <tom@apptimist.co>
update write total when InBuffer

Signed-off-by: Tom Grennan <tom@apptimist.co>