Exemple #1
0
 def  name_alloc(nm, xAlloc):
     logdbg('Allocating room for '+str(xAlloc)+' more names')
     nm.nx2_nid    = append(nm.nx2_nid,  zeros(xAlloc,dtype=uint32))
     nm.nx2_name   = append(nm.nx2_name, empty(xAlloc,dtype=object))
     nm.nx2_cx_list    = append(nm.nx2_cx_list, alloc_lists(xAlloc))
     idAlloc       = len(nm.nx2_nid) - len(nm.nid2_nx) + 2
     if idAlloc > 0:
         logdbg('Allocating room for '+str(idAlloc)+' more reverse nids')
         nm.nid2_nx = append(nm.nid2_nx, zeros(idAlloc,dtype=uint32)) 
Exemple #2
0
 def name_alloc(nm, xAlloc):
     logdbg('Allocating room for ' + str(xAlloc) + ' more names')
     nm.nx2_nid = append(nm.nx2_nid, zeros(xAlloc, dtype=uint32))
     nm.nx2_name = append(nm.nx2_name, empty(xAlloc, dtype=object))
     nm.nx2_cx_list = append(nm.nx2_cx_list, alloc_lists(xAlloc))
     idAlloc = len(nm.nx2_nid) - len(nm.nid2_nx) + 2
     if idAlloc > 0:
         logdbg('Allocating room for ' + str(idAlloc) +
                ' more reverse nids')
         nm.nid2_nx = append(nm.nid2_nx, zeros(idAlloc, dtype=uint32))
Exemple #3
0
 def img_alloc(gm, nAlloc):
     logdbg('Allocating room for %d more images' % nAlloc)
     #-- Forward Allocation
     gm.gx2_gid     = append(gm.gx2_gid,     zeros(nAlloc,dtype=uint32))
     gm.gx2_gname   = append(gm.gx2_gname,   zeros(nAlloc,dtype=object))
     gm.gx2_aif_bit = append(gm.gx2_aif_bit, zeros(nAlloc,dtype=bool))
     gm.gx2_cx_list     = append(gm.gx2_cx_list, alloc_lists(nAlloc))
     #-- Inverse Allocation
     idAlloc        = len(gm.gx2_gid) - len(gm.gid2_gx)
     if idAlloc > 0:
         gm.gid2_gx = append(gm.gid2_gx, zeros(idAlloc,dtype=uint32))
Exemple #4
0
 def img_alloc(gm, nAlloc):
     logdbg('Allocating room for %d more images' % nAlloc)
     #-- Forward Allocation
     gm.gx2_gid = append(gm.gx2_gid, zeros(nAlloc, dtype=uint32))
     gm.gx2_gname = append(gm.gx2_gname, zeros(nAlloc, dtype=object))
     gm.gx2_aif_bit = append(gm.gx2_aif_bit, zeros(nAlloc, dtype=bool))
     gm.gx2_cx_list = append(gm.gx2_cx_list, alloc_lists(nAlloc))
     #-- Inverse Allocation
     idAlloc = len(gm.gx2_gid) - len(gm.gid2_gx)
     if idAlloc > 0:
         gm.gid2_gx = append(gm.gid2_gx, zeros(idAlloc, dtype=uint32))