1
0
mirror of https://github.com/Zygo/bees.git synced 2025-08-03 22:33:28 +02:00

bytevector: add ostream output with hexdump

There is a hexdump template in fs.  Move hexdump to its own header,
then ByteVector can use it too.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2021-10-17 02:08:22 -04:00
parent 9cdeb608f5
commit d1015b683f
4 changed files with 47 additions and 24 deletions

View File

@@ -2,6 +2,7 @@
#define _CRUCIBLE_BYTEVECTOR_H_
#include <memory>
#include <ostream>
#include <cstdint>
#include <cstdlib>
@@ -66,6 +67,7 @@ namespace crucible {
return reinterpret_cast<T*>(data());
}
ostream & operator<<(ostream &os, const ByteVector &bv);
}
#endif // _CRUCIBLE_BYTEVECTOR_H_