コード例 #1
0
ファイル: IOStack.cpp プロジェクト: Jurrie/ola
/**
 * Append another block.
 */
void IOStack::PrependBlock() {
  MemoryBlock *block = m_pool->Allocate();
  if (!block) {
    OLA_FATAL << "Failed to allocate block, we're out of memory!";
  }
  block->SeekBack();  // put the block into prepend mode
  m_blocks.push_front(block);
}