parameters: (self)
docstring: Find the next block to be written in the input, and copy it to the output.
docstring_summary: Find the next block to be written in the input, and copy it to the output.
docstring_tokens: Find the next block to be written in the input and copy it to the output .
function: def copyOneBlock(self):
          '''Find the next block to be written in the input, and copy it to the output.'''
          extent = self.blockExtents.pop(self.blkCountOut)
          if self.blkCountOut in self.outOfOrderData:
              # If the data is cached, use it from memory and remove from the cache
              rawblock = self.outOfOrderData.pop(self.blkCountOut)
              self.outOfOrderSize -= len(rawblock)
          else: # Otherwise look up data on disk
              rawblock = self.fetchBlock(extent)
  
          self.writeBlock(extent.inhdr, extent.blkhdr, rawblock)
function_tokens: def copyOneBlock ( self ) : extent = self . blockExtents . pop ( self . blkCountOut ) if self . blkCountOut in self . outOfOrderData : # If the data is cached, use it from memory and remove from the cache rawblock = self . outOfOrderData . pop ( self . blkCountOut ) self . outOfOrderSize -= len ( rawblock ) else : # Otherwise look up data on disk rawblock = self . fetchBlock ( extent ) self . writeBlock ( extent . inhdr , extent . blkhdr , rawblock )