Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

        def StoreLong(theInt):
    return StoreInt(theInt, theRange=LONGRANGE, theMax=LONGMAX)
        


src/b/p/BplusPy-1.0/BplusPy/BplusTreeLong.py   BplusPy(Download)
        if ord(buffer)==FREE:
            raise BplusTreeException, "attempt to free buffer marked free already"
        buffer = chr(FREE)+BufferFile.StoreLong(this.freeHeadSeek)
        this.buffers.setBuffer(buffernumber, buffer)
        this.freeHeadSeek = buffernumber
        result.append(BufferFile.StoreInt(this.KeyLength))
        result.append(BufferFile.StoreInt(INVARIANTCULTUREID))
        result.append(BufferFile.StoreLong(this.rootSeek))
        result.append(BufferFile.StoreLong(this.freeHeadSeek))
        return string.join(result, "")
        maxLength = this.owner.KeyLength
        maxKeyPayload = maxLength - BufferFile.SHORTSTORAGE
        a(BufferFile.StoreLong(numbers[0]))
        for KeyIndex in xrange(this.Size):
            # store the key
                a(padded)
            # store the seek
            a(BufferFile.StoreLong(numbers[KeyIndex+1]))
        result = string.join(L, "")
        #print "<br>", this.MyBufferNumber, "raw dump", repr(result), "<br>"

src/b/p/BplusPy-1.0/BplusPy/LinkedFile.py   BplusPy(Download)
    def makeHeader(this):
        #return HEADERPREFIX+chr(VERSION)+BufferFile.StoreInt(
        L = [HEADERPREFIX, chr(VERSION), BufferFile.StoreInt(this.buffersize),
             BufferFile.StoreLong(this.FreeListHead)]
        return string.join(L, "")
    def SetBuffer(this, bufferNumber, type, thebuffer, NextBufferNumber):
        #print "<br>setting", bufferNumber, type, repr(thebuffer), NextBufferNumber
        if (this.buffersize<len(thebuffer)):
            raise LinkedFileException, "too much data"
        fullbuffer = (chr(type)+BufferFile.StoreLong(NextBufferNumber))+thebuffer