Main.FileFormat3 History

Hide minor edits - Show changes to markup

May 03, 2008, at 01:13 PM by 88.70.237.55
Added lines 1-37:

Format for .sbk files. Version 3.

Little endian encoding is used.

File format:

  • 4 Bytes: "SBKF"
  • 1 Byte: Version. This document describes the version 3. (CHANGED)
  • 4 Bytes: Number of .zip-files (NEW)
  • Offset for the list of commits: Ref

List of commits:

  • 4 Bytes: Number of commits N
  • Offset for the directories: Ref[N]

Ref:

  • Offset: 8 Bytes

List of files/directories:

  • Number of entries M: 4 Bytes (CHANGED)
  • Files: Ref[M]
  • Number of entries N: 4 Bytes (CHANGED)
  • Directories: Ref[N]

Directory:

  • Name offset: Ref
  • Offset for the list of files and directories: Ref

String

  • Length: 4 Bytes
  • UTF8?-coded text

File:

  • Name offset: Ref
  • Length: 8 Bytes
  • Last modification time (in milliseconds since 1970): 8 Bytes
  • Data format: 0 - plain, 1-gzip, 2 - external .zip file: 1 Byte (CHANGED)
  • Data offset: Ref oder No of the .zip file: 8 Bytes (CHANGED)