File: FILE-FORMAT

package info (click to toggle)
libydpdict 1.0.4-3
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye, buster, forky, sid, stretch, trixie
  • size: 200 kB
  • ctags: 73
  • sloc: ansic: 848; makefile: 30; python: 19; sh: 12
file content (33 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Note: All multi-byte fields are stored in little-endian.

.idx file header
================

offset  length  description
------  ------  ------------------------------------
0       4       file id: 0xD5, 0x11, 0x4E, 0x8D (or 0x8D4E11D5)
4       4       ?
8       2       record count
10      2       ?
12      4       ?
16      4       record table offset

.idx file record
================

offset  length  description
------  ------  ------------------------------------
n       1       word length + 1
n+1     1       ?
n+2     2       record number (starting from 1)
n+4     4       record offset in .dat file
n+8     m+1     word with \0

.dat file record
================

offset  length  description
------  ------  ------------------------------------
n       4       definition length in bytes
n+4     m       definition without \0