1
/** Copyright (c) 2010 Scott A. Crosby. <scott@sacrosby.com>
3
This program is free software: you can redistribute it and/or modify
4
it under the terms of the GNU Lesser General Public License as
5
published by the Free Software Foundation, either version 3 of the
6
License, or (at your option) any later version.
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License
14
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
option java_package = "crosby.binary";
21
//protoc --java_out=../.. fileformat.proto
25
// STORAGE LAYER: Storing primitives.
29
optional bytes raw = 1; // No compression
30
optional int32 raw_size = 2; // When compressed, the uncompressed size
32
// Possible compressed versions of the data.
33
optional bytes zlib_data = 3;
35
// PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
36
optional bytes lzma_data = 4;
38
// Formerly used for bzip2 compressed data. Depreciated in 2010.
39
optional bytes OBSOLETE_bzip2_data = 5 [deprecated=true]; // Don't reuse this tag number.
42
/* A file contains an sequence of fileblock headers, each prefixed by
43
their length in network byte order, followed by a data block
44
containing the actual data. types staring with a "_" are reserved.
48
required string type = 1;
49
optional bytes indexdata = 2;
50
required int32 datasize = 3;