buffer: add read/write U/Int 24 BE/LE.

added 3 bytes support for buffers, also added to test.