Ejemplo n.º 1
0
 private function read($address)
 {
     step();
     $position = $address * $this->fullLength;
     step();
     return $this->storage->read($position, $this->fullLength);
 }
Ejemplo n.º 2
0
 public function read($address)
 {
     step();
     if ($address === null) {
         step();
         return '';
     }
     step();
     $position = $address * $this->fullLength;
     step();
     $length = $this->fullLength;
     step();
     return $this->storage->read($position, $length);
 }