23 lines
487 B
C++
Executable file
23 lines
487 B
C++
Executable file
// Copyright (c) 2011-2016 The Cryptonote developers
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "IInputStream.h"
|
|
|
|
namespace Common {
|
|
|
|
class StringInputStream : public IInputStream {
|
|
public:
|
|
StringInputStream(const std::string& in);
|
|
size_t readSome(void* data, size_t size) override;
|
|
|
|
private:
|
|
const std::string& in;
|
|
size_t offset;
|
|
};
|
|
|
|
}
|