Commit 83d7d9e6 authored by Yazhong Liu's avatar Yazhong Liu Committed by Trevor Norris
Browse files

buffer: add generic functions for (u)int ops



Add generic functions for (U)Int read/write operations on Buffers. These
support up to and including 48 bit reads and writes.

Include documentation and tests.

Additional work done by Trevor Norris to include 40 and 48 bit write
support. Because bitwise operations cannot be used on values greater
than 32 bits, the operations have been replaced with mathematical
calculations. Regardless, they are still faster than floating point
operations.

Reviewed-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent e9ca7b9d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment