Did I find the right examples for you? yes no

All Samples(28)  |  Call(28)  |  Derive(0)  |  Import(0)
turns a normalized byte string into a long-int (adapted from Crypto.Util.number)

        def inflate_long(s, always_positive=False):
    "turns a normalized byte string into a long-int (adapted from Crypto.Util.number)"
    out = 0L
    negative = 0
    if not always_positive and (len(s) > 0) and (ord(s[0]) >= 0x80):
        negative = 1
    if len(s) % 4:
        filler = '\x00'
        if negative:
            filler = '\xff'
        s = filler * (4 - len(s) % 4) + s
    for i in range(0, len(s), 4):
        out = (out << 32) + struct.unpack('>I', s[i:i+4])[0]
    if negative:
        out -= (1L << (8 * len(s)))
    return out
        


src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/paramiko/ber.py   antisocial(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/t/r/triaquae-HEAD/TriAquae/models/Ubuntu_13/paramiko/ber.py   triaquae(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/t/r/triaquae-HEAD/TriAquae/models/Ubuntu_12/paramiko/ber.py   triaquae(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/t/r/triaquae-HEAD/TriAquae/models/Centos_6.4/paramiko/ber.py   triaquae(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/t/r/triaquae-HEAD/TriAquae/models/Centos_5.9/paramiko/ber.py   triaquae(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/s/c/screencloud-plugins-HEAD/sftp/modules/paramiko/ber.py   screencloud-plugins(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/f/o/FotoShareN9-HEAD/1.6.1/fotoshare/opt/FotoShareN9/plugins/sftp/libs/paramiko/ber.py   FotoShareN9(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/f/o/FotoShareN9-HEAD/1.6.1/fotoshare/opt/FotoShareN9/plugins/scp/libs/paramiko/ber.py   FotoShareN9(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/f/o/FotoShareN9-HEAD/0.9.7/fotoshare_deb/opt/FotoShareN9/paramiko/ber.py   FotoShareN9(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

src/f/o/FotoShareN9-HEAD/0.9.7/paramiko/ber.py   FotoShareN9(Download)
            if self.idx + t > len(self.content):
                return None
            size = util.inflate_long(self.content[self.idx : self.idx + t], True)
            self.idx += t
        if self.idx + size > len(self.content):
        elif ident == 2:
            # int
            return util.inflate_long(data)
        else:
            # 1: boolean (00 false, otherwise true)

  1 | 2  Next