Files
NFD/daemon/face/ndnlp-sequence-generator.cpp
T
Junxiao Shi 9b0d3e91b0 face: NDNLP slicer
refs #1206

Change-Id: Ifbf0aeedff8fc9300799c97772d988dce2fce306
2014-02-16 03:01:28 -07:00

33 lines
591 B
C++

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "ndnlp-sequence-generator.hpp"
namespace nfd {
namespace ndnlp {
SequenceBlock::SequenceBlock(uint64_t start, size_t count)
: m_start(start)
, m_count(count)
{
}
SequenceGenerator::SequenceGenerator()
: m_next(0)
{
}
SequenceBlock
SequenceGenerator::nextBlock(size_t count)
{
SequenceBlock sb(m_next, count);
m_next += count;
return sb;
}
} // namespace ndnlp
} // namespace nfd