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