Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following is a high-level simplification of the layers constituting the Trebuchet core library:

Image RemovedImage Added

Scheme-to-protocol mapping

...

CONTENTS

TYPE

BYTE POSITION

status

byte

0

entry id

long

1

previous id

long

9

type

byte

17

symlinked parent

byte

18

mode

char

19

links

int

21

size

long

25

modified

long

33

user length

int

41

group length

int

45

relative dir length

int

49

name length

int

53

symlink length

int

57

n = num properties

int

61

property name i length

int

65 + 8i

property value i length

int

69 + 8i

user

bytes

65 + 8n

group

bytes

65 + 8n + user length

relative dir

bytes

65 + 8n + user length + group length

name

bytes

65 + 8n + user length + group length + relative dir length

symlink

bytes

65 + 8n + user length + group length + relative dir length + name length

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="617d4cddb46385d1-c0719751-40234108-8470ba89-5bc448437289ace5d7bed0ce"><ac:plain-text-body><![CDATA[

property name i

bytes

65 + 8n + user length + group length + relative dir length + name length + symlink length + ?[0 <= k < i] property name k length

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="589376548643e1cf-7b0f51a2-4ff74123-a44aac20-0d7b46a293e8d13fd26a9b4b"><ac:plain-text-body><![CDATA[

property value i

bytes

65 + 8n + user length + group length + relative dir length + name length + ?[0 <= k < n] property name k length + ?[0 <= k < i] property value k length

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="190f2e37e5fce771-61adb0da-482b400f-84ccaf72-30c4ba28ef4ddc4efd495dde"><ac:plain-text-body><![CDATA[

(end)

 

65 + 8n + user length + group length + relative dir length + name length + ?[0 <= k < n] property name k length + ?[0 <= k < n] property value k length

]]></ac:plain-text-body></ac:structured-macro>

...