Continued with hash-based stacks:
[core.git] / contrib / file_stack / format.txt
index 9d88c78ebe2c7d6fd83012e43005f2e85855aa6c..cb8c07ee480035adbe08365984e84ef663e7b331 100644 (file)
@@ -5,11 +5,11 @@ This is the format for a file-based stack which works as any Stackable class.
 
 General made up:
 
-Purpose: | "magic"   | separator | count    | position | separator |
----------+-----------+-----------+----------+----------+-----------+
-Bytes:   | 9         | 1         | 20 (hex) | 20 (hex) | 1         |
----------+-----------+-----------+----------+----------+-----------+
-Example: | STACKv1.0 | 00        | 00...ff  | 00...ff  | ff        |
+Purpose: | "magic"   | separator | count    | separator | position | separator |
+---------+-----------+-----------+----------+-----------+------0---+-----------+
+Bytes:   | 9         | 1         | 20 (hex) | 1         | 20 (hex) | 1         |
+---------+-----------+-----------+----------+-----------+----------+-----------+
+Example: | STACKv1.0 | 01        | 00...ff  | 02        | 00...ff  | 03        |
 
 Continued:
 
@@ -17,7 +17,7 @@ Purpose: | hash 0 | separator | name 0 | entry 0    | hash n | separator | name
 ---------+--------+-----------+--------+------------+--------+-----------+--------+------------+-----+
 Bytes:   |  64    | 1         | 10     | 1-n (pack) |  64    | 1         | 10     | 1-n (pack) | 1   |
 ---------+--------+-----------+--------+------------+--------+-----------+--------+------------+-----+
-Example: | abc    |    ???    | foo    |    ...     | abc    |    ???    | bar    |     ...    | EOF |
+Example: | abc    |    04     | foo    |    ...     | abc    |    04     | bar    |     ...    | EOF |
 
 Explanations:
 -------------
@@ -29,4 +29,5 @@ Explanations:
  name X       - Name of stack the entries belongs in
  entry X      - The actual data, compressed with pack()
  EOF          - End-of-file character
+ ...          - Data
  ???          - Must be still found out which character/hashing algorthym fits best