(self, pos=0)
get bytes from data
get bytes from data
get bytes from data
def get_lines(self, pos=0):
        """ get bytes from data
        """
        if self.data is None:
            return None

        while pos < len(self.data) - self.bytes_per_line:
            yield (pos, self.bytes_per_line,
                   self.to_ascii(self.data[pos:pos + self.bytes_per_line]))
            pos += self.bytes_per_line

        yield (pos, len(self.data) - pos, self.to_ascii(self.data[pos:]))
def get_lines ( self , pos = 0 ) : if self . data is None : return None while pos < len ( self . data ) - self . bytes_per_line : yield ( pos , self . bytes_per_line , self . to_ascii ( self . data [ pos : pos + self . bytes_per_line ] ) ) pos += self . bytes_per_line yield ( pos , len ( self . data ) - pos , self . to_ascii ( self . data [ pos : ] ) )