Skip to content

Instantly share code, notes, and snippets.

@bog-dan-ro
Created June 19, 2016 07:25
Show Gist options
  • Save bog-dan-ro/51fdcd772594ebb317468bcda71dc2ff to your computer and use it in GitHub Desktop.
Save bog-dan-ro/51fdcd772594ebb317468bcda71dc2ff to your computer and use it in GitHub Desktop.
ZX emulators flatbuffers file
// Flat Buffers ZX file format
include "zx_base.fbs";
namespace ZX.FB;
enum SnapshotType : byte {
SNA,
Z80,
PLUSD,
SP,
SNP,
ZXS,
SZX, // Default
}
table Snapshot {
type: SnapshotType;
date: uint;
compression: ZX.Compression = DEFLATE;
content: string (required);
}
table Movie {
date: uint;
compression: ZX.Compression = DEFLATE;
content: string (required);
}
table File {
displayInfo: ZX.DisplayInfo;
zxFiles: [ZX.File];
scans: [ZX.Scan];
snapshots: [Snapshot];
movies: [Movie];
}
root_type File;
file_identifier "BDZX";
file_extension "zx";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment