---------+-----------+-----------+----------+---------------+-----------+
Bytes: | 9 | 1 | 20 (hex) | 2 - n^2 (hex) | 1 |
---------+-----------+-----------+----------+---------------+-----------+
-Example: | STACKv1.0 | ??? | 00...ff | 01 | ??? |
+Example: | STACKv1.0 | 00 | 00...ff | 01 | ff |
Continued:
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class FileIoIterator extends BaseIterator implements SeekableWritableFileIterator {
+ /**
+ * Current absolute seek position (returned by key())
+ */
+ private $seekPosition = -1;
+
+ /**
+ * Total entries (read from file)
+ */
+ private $totalEntriesFile = -1;
+
/**
* Protected constructor
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseFileStack extends BaseStacker {
+ /**
+ * Magic for this stack
+ */
+ const STACK_MAGIC = 'STACKv0.1';
+
+ /**
+ * Separator magic->count
+ */
+ const SEPARATOR_MAGIC_COUNT = 0x00;
+
+ /**
+ * Separator position->entries
+ */
+ const SEPARATOR_SEEK_POS_ENTRIES = 0xff;
+
+ /**
+ * Separator hash->name
+ */
+ const SEPARATOR_HASH_NAME = 0x01;
+
/**
* Protected constructor
*