summaryrefslogtreecommitdiff
path: root/system/magic/storage
blob: b7698d1abdf72a1090e39ec17c789fa1f23bf338 (plain)
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
34
35
36
37
38
39
40

# 4.3.7  Local file header:
# Cf. https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

# local file header signature     4 bytes  (0x04034b50)
# version needed to extract       2 bytes
# general purpose bit flag        2 bytes
# compression method              2 bytes
# last mod file time              2 bytes
# last mod file date              2 bytes
# crc-32                          4 bytes
# compressed size                 4 bytes
# uncompressed size               4 bytes
# file name length                2 bytes
# extra field length              2 bytes


# ZIP local file header #1

0               string          PK\003\004

# First entry: control (file name length = 7)

>0x1a           uleshort        7
>>0x1e          string          control

# Content of control

>>>&(0x1c.h)    string          COBSTR          Chrysalide GObject storage
>>>>&0          string          \001\000        (version 1.0)

# Storage for PythonNotebook

>>>>>&0         byte            14
>>>>>>&0        string          PythonNotebook  - PythonNotebook

>>>>>>>&0       byte            1               v1

!:mime          application/vnd.chrysalide.notebook
!:ext           cnb