mapping infinite data into a finite buffer.