/* --- For debugging only
BOOST_AUTO_TEST_CASE(SmallSize8Single)
{
- Segment s(1, sizeof(uint8_t));
+ Segment s(0, 1, sizeof(uint8_t));
uint32_t num_samples = 10;
//----- Chunk size << pv::data::Segment::MaxChunkSize @ 8bit, added in 1 call ----//
/* --- For debugging only
BOOST_AUTO_TEST_CASE(MediumSize8Single)
{
- Segment s(1, sizeof(uint8_t));
+ Segment s(0, 1, sizeof(uint8_t));
uint32_t num_samples = pv::data::Segment::MaxChunkSize;
//----- Chunk size == pv::data::Segment::MaxChunkSize @ 8bit, added in 1 call ----//
/* --- For debugging only
BOOST_AUTO_TEST_CASE(MaxSize8Single)
{
- Segment s(1, sizeof(uint8_t));
+ Segment s(0, 1, sizeof(uint8_t));
// We want to see proper behavior across chunk boundaries
uint32_t num_samples = 2*pv::data::Segment::MaxChunkSize;
/* --- For debugging only
BOOST_AUTO_TEST_CASE(MediumSize24Single)
{
- Segment s(1, 3);
+ Segment s(0, 1, 3);
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
uint32_t num_samples = pv::data::Segment::MaxChunkSize / 3;
/* --- For debugging only
BOOST_AUTO_TEST_CASE(MediumSize32Single)
{
- Segment s(1, sizeof(uint32_t));
+ Segment s(0, 1, sizeof(uint32_t));
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
uint32_t num_samples = pv::data::Segment::MaxChunkSize / sizeof(uint32_t);
/* --- For debugging only
BOOST_AUTO_TEST_CASE(MaxSize32Single)
{
- Segment s(1, sizeof(uint32_t));
+ Segment s(0, 1, sizeof(uint32_t));
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
// Also, we want to see proper behavior across chunk boundaries
/* --- For debugging only
BOOST_AUTO_TEST_CASE(MediumSize32Multi)
{
- Segment s(1, sizeof(uint32_t));
+ Segment s(0, 1, sizeof(uint32_t));
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
uint32_t num_samples = pv::data::Segment::MaxChunkSize / sizeof(uint32_t);
BOOST_AUTO_TEST_CASE(MaxSize32Multi)
{
- Segment s(1, sizeof(uint32_t));
+ Segment s(0, 1, sizeof(uint32_t));
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
uint32_t num_samples = 2*(pv::data::Segment::MaxChunkSize / sizeof(uint32_t));
BOOST_AUTO_TEST_CASE(MaxSize32MultiAtOnce)
{
- Segment s(1, sizeof(uint32_t));
+ Segment s(0, 1, sizeof(uint32_t));
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
uint32_t num_samples = 3*(pv::data::Segment::MaxChunkSize / sizeof(uint32_t));
BOOST_AUTO_TEST_CASE(MaxSize32MultiIterated)
{
- Segment s(1, sizeof(uint32_t));
+ Segment s(0, 1, sizeof(uint32_t));
// Chunk size is num*unit_size, so with pv::data::Segment::MaxChunkSize/unit_size, we reach the maximum size
uint32_t num_samples = 2*(pv::data::Segment::MaxChunkSize / sizeof(uint32_t));