1 // Copyright 2017 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 package puffin.metadata; 8 option optimize_for = LITE_RUNTIME; 9 10 message BitExtent { 11 uint64 offset = 1; 12 uint64 length = 2; 13 } 14 15 message StreamInfo { 16 repeated BitExtent deflates = 1; 17 repeated BitExtent puffs = 2; 18 uint64 puff_length = 3; 19 } 20 21 message PatchHeader { 22 int32 version = 1; 23 StreamInfo src = 2; 24 StreamInfo dst = 3; 25 // The bsdiff patch is installed right after this protobuf. 26 }