mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Move the * and + Bytes methods onto Bytes itself.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user