Lines Matching refs:input
63 def Copy(input, output, length): argument
64 buf = input.read(length)
78 def ProcessDataHeader(self, input, body): argument
79 magic = ReadIntLE(input)
85 version = ReadShortLE(input)
96 offsetToData = ReadShortLE(input) - 16
100 Copy(input, body, 8)
107 self._mRecordSize = ReadShortLE(input)
112 Copy(input, body, offsetToData)
114 def ProcessMethod(self, input): argument
115 stringLength = ReadShortLE(input)
116 str = input.read(stringLength)
120 def ProcessThread(self, input): argument
121 tid = ReadShortLE(input)
122 stringLength = ReadShortLE(input)
123 str = input.read(stringLength)
127 def ProcessTraceSummary(self, input): argument
128 summaryLength = ReadIntLE(input)
129 str = input.read(summaryLength)
133 def ProcessSpecial(self, input): argument
134 code = ord(input.read(1))
136 self.ProcessMethod(input)
138 self.ProcessThread(input)
140 self.ProcessTraceSummary(input)
144 def Process(self, input, body): argument
147 threadId = ReadShortLE(input)
149 self.ProcessSpecial(input)
153 Copy(input, body, self._mRecordSize - 2)
182 input = open(filename, 'rb') # Input file
188 self.ProcessDataHeader(input, body)
193 self.Process(input, body)
197 input.close()