Deleted Added
sdiff udiff text old ( 10107:524afa92d940 ) new ( 10269:82773ace39fa )
full compact
1#!/usr/bin/env python
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 57 unchanged lines hidden (view full) ---

66#
67# Authors: Andreas Hansson
68# Radhika Jagtap
69
70# This file is a library of commonly used functions used when interfacing
71# with protobuf python messages. For eg, the decode scripts for different
72# types of proto objects can use the same function to decode a single message
73
74import struct
75
76def DecodeVarint(in_file):
77 """
78 The decoding of the Varint32 is copied from
79 google.protobuf.internal.decoder and is only repeated here to
80 avoid depending on the internal functions in the library. If the
81 end of file is reached, return (0, 0).
82 """
83 result = 0

--- 58 unchanged lines hidden ---