def __getuint(this): for i in range(3): n = this.p[i]; if(not(n & 0x80)): n = n + (this.p[i] << (7 * i)) return n,i+1 #if n & 0x80: #n = n + (this.p[1] << 7) - 0x80 #if(n & (1<<14)): # size = 2 # n = n + (this.p[size-1] << 14) - (1<<14) #if(n & (1<<21)): # size = 3 # n = n + (this.p[size-1] << 21) - (1<<21) #if(n & (1<<28)): # n |= 0xF0000000 #return n,1