(self, strSID)
Constructor
Constructor
Constructor
def __init__(self, strSID):
        '''
        Constructor
        '''
        if strSID == "":
            return None
        (self.Revision, ) = unpack('B', unhexlify(strSID[:2]))
        (self.SecurityAuthority, ) = unpack('>I', unhexlify(strSID[8:16]))
        self.NumIDS = (len(strSID) / 8) - 2
        (self.RID, ) = unpack('>I',unhexlify(strSID[len(strSID) - 8:]))
        
        self.IDs = []
        for id in range(0, self.NumIDS - 1):
            (tmp,) = unpack('I', unhexlify(strSID[(id + 2) * 8:(id + 2) * 8 + 8]))
            self.IDs.append(tmp)
def __init__ ( self , strSID ) : if strSID == "" : return None ( self . Revision , ) = unpack ( 'B' , unhexlify ( strSID [ : 2 ] ) ) ( self . SecurityAuthority , ) = unpack ( '>I' , unhexlify ( strSID [ 8 : 16 ] ) ) self . NumIDS = ( len ( strSID ) / 8 ) - 2 ( self . RID , ) = unpack ( '>I' , unhexlify ( strSID [ len ( strSID ) - 8 : ] ) ) self . IDs = [ ] for id in range ( 0 , self . NumIDS - 1 ) : ( tmp , ) = unpack ( 'I' , unhexlify ( strSID [ ( id + 2 ) * 8 : ( id + 2 ) * 8 + 8 ] ) ) self . IDs . append ( tmp )