Esempio n. 1
0
 private function read($address)
 {
     step();
     $position = $address * $this->fullLength;
     step();
     return $this->storage->read($position, $this->fullLength);
 }
Esempio 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);
 }