ylb11 / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

small refactor of bio methods #462

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you look carefully at bio methods, bio-ct is always less than or equal to 8, 
and only the first byte of bio->buf is ever used. 

So, here is a small patch to make this fact clearer. Also, in a future patch, 
it may be more efficient to buffer more than one byte before copying to output 
buffer.  So, this refactor will make it easier to make
this future change.

Original issue reported on code.google.com by boxe...@gmail.com on 24 Dec 2014 at 1:12

Attachments:

GoogleCodeExporter commented 9 years ago
Patch has been tested. No regressions.

Original comment by m.darb...@gmail.com on 24 Dec 2014 at 10:18