More refactoring.

Change-Id: Iaf937feb0486d2f008a47584c0a75edccbde2b34
This commit is contained in:
Peter Johnson
2015-06-21 22:03:51 -07:00
parent c4d4679ed9
commit b88a9295bf
6 changed files with 54 additions and 25 deletions

View File

@@ -7,9 +7,22 @@
#include "nt_raw_istream.h"
#include <cstring>
using namespace NtImpl;
void
raw_istream::anchor()
{
}
bool
raw_mem_istream::read(void *data, std::size_t len)
{
if (len > m_left)
return false;
std::memcpy(data, m_cur, len);
m_cur += len;
m_left -= len;
return true;
}