Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -0,0 +1,9 @@
#pragma once
#include <tc/io/ISource.h>
class SourceTestUtil
{
public:
static void testSourceLength(tc::io::ISource& source, int64_t expected_len);
static void pullTestHelper(tc::io::ISource& source, int64_t offset, size_t len, size_t expected_len, const byte_t* expected_data);
};