private void prepareBuffers ( List < DBBPool . BBContainer > buffers ) { Preconditions . checkArgument ( buffers . size ( ) == m_tableTasks . size ( ) ) ; UnmodifiableIterator < SnapshotTableTask > iterator = m_tableTasks . iterator ( ) ; for ( DBBPool . BBContainer container : buffers ) { int headerSize = iterator . next ( ) . m_target . getHeaderSize ( ) ; final ByteBuffer buf = container . b ( ) ; buf . clear ( ) ; buf . position ( headerSize ) ; } }
Set the positions of the buffers to the start of the content leaving some room for the headers .