Lines Matching refs:raw_buffer
66 self.raw_buffer = None
78 self.raw_buffer = stream
84 self.raw_buffer = None
123 while not self.eof and (self.raw_buffer is None or len(self.raw_buffer) < 2):
125 if isinstance(self.raw_buffer, bytes):
126 if self.raw_buffer.startswith(codecs.BOM_UTF16_LE):
129 elif self.raw_buffer.startswith(codecs.BOM_UTF16_BE):
147 if self.raw_buffer is None:
156 data, converted = self.raw_decode(self.raw_buffer,
159 character = self.raw_buffer[exc.start]
161 position = self.stream_pointer-len(self.raw_buffer)+exc.start
167 data = self.raw_buffer
171 self.raw_buffer = self.raw_buffer[converted:]
174 self.raw_buffer = None
179 if self.raw_buffer is None:
180 self.raw_buffer = data
182 self.raw_buffer += data