forked from google/reftable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
30 lines (25 loc) · 753 Bytes
/
types.go
File metadata and controls
30 lines (25 loc) · 753 Bytes
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
/*
Copyright 2020 Google LLC
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/
package reftable
// header is the file header present both at start and end of file.
type header struct {
Magic [4]byte
BlockSize uint32
MinUpdateIndex uint64
MaxUpdateIndex uint64
HashID HashID
}
// footer is the file footer present only at the end of file.
type footer struct {
// Footer lacks RefOffset, because it is always headerSize (if present)
RefIndexOffset uint64
// On serialization, offset is <<5, lower bits hold id size
ObjOffset uint64
ObjIndexOffset uint64
LogOffset uint64
LogIndexOffset uint64
}