epics-base / pvDataCPP

pvDataCPP is an EPICS V4 C++ module
https://epics-base.github.io/pvDataCPP/
Other
6 stars 16 forks source link

overhaul byteBuffer implementation #45

Closed mdavidsaver closed 7 years ago

mdavidsaver commented 7 years ago

Mainly cleanup and tests. And change align()

align(n) now fills skipped bytes with '\0'.

align(n,f) to choose a different fill value.

No other changes intended

Use intrinsic byte order swapping builtins for gcc, clang, and msvc.

use assert() to check pre/post conditions.

Remove unused condition macros and unreachable code.

Add tests of byte swapping primitives and test the correctness of unaligned operations.

add illustrations of flip() and rewind()