'Read and discard data'

def _skip(self, cnt):

    while (cnt > 0):
        if (cnt > 8192):
            buf = self.read(8192)
        else:
            buf = self.read(cnt)
        if (not buf):
            break
        cnt -= len(buf)
