servlib/bundling/BlockProcessor.cc
changeset 5 1849bf57d910
parent 0 2b3e5ec03512
equal deleted inserted replaced
4:c02ca5a6ab82 5:1849bf57d910
   498                         u_char*          buf,
   498                         u_char*          buf,
   499                         size_t           offset,
   499                         size_t           offset,
   500                         size_t           len)
   500                         size_t           len)
   501 {
   501 {
   502     (void)bundle;
   502     (void)bundle;
       
   503 /////////////////////////////////////////////////////////////////////////
       
   504 // test code to be removed
       
   505 /*
       
   506     if (offset >= block->contents().len()){
       
   507         log_err_p(log, "ERROR: BlockProcessor::produce");
       
   508         log_err_p(log, "offset: %d, block->contents().len(): %d", 
       
   509             offset, block->contents().len());
       
   510         log_err_p(log, "Block type: %d", block->type());
       
   511     }    
       
   512 */
       
   513 /////////////////////////////////////////////////////////////////////////
   503     ASSERT(offset < block->contents().len());
   514     ASSERT(offset < block->contents().len());
   504     ASSERT(block->contents().len() >= offset + len);
   515     ASSERT(block->contents().len() >= offset + len);
   505     memcpy(buf, block->contents().buf() + offset, len);
   516     memcpy(buf, block->contents().buf() + offset, len);
   506 }
   517 }
   507 
   518