huangcm
2025-02-28 b45e871a67cd1272e3da9ba5bd383f832b0f1824
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
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
syntax = "proto3";
 
package puffin.metadata;
option optimize_for = LITE_RUNTIME;
 
message BitExtent {
  uint64 offset = 1;
  uint64 length = 2;
}
 
message StreamInfo {
  repeated BitExtent deflates = 1;
  repeated BitExtent puffs = 2;
  uint64 puff_length = 3;
}
 
message PatchHeader {
  int32 version = 1;
  StreamInfo src = 2;
  StreamInfo dst = 3;
  // The bsdiff patch is installed right after this protobuf.
}