Move the * and + Bytes methods onto Bytes itself.

This commit is contained in:
dg
2022-12-18 22:00:16 +00:00
parent 9bd8b8915e
commit 339ea3b5a4
4 changed files with 21 additions and 36 deletions

View File

@@ -5,24 +5,6 @@
#include "fluxmap.h"
#include "fluxsource/kryoflux.h"
static Bytes operator + (const Bytes& left, const Bytes& right)
{
Bytes output;
ByteWriter bw(output);
bw += left;
bw += right;
return output;
}
static Bytes operator * (const Bytes& left, size_t count)
{
Bytes output;
ByteWriter bw(output);
while (count--)
bw += left;
return output;
}
static void test_convert(const Bytes& kryofluxbytes, const Bytes& fluxmapbytes)
{
std::unique_ptr<Fluxmap> fluxmap = readStream(kryofluxbytes);