Lines Matching defs:unpack
5 unpack(desc) does the reverse
131 def unpack(desc, formodulename=""):
132 """Unpack an AE descriptor to a python object"""
143 l.append(unpack(item, formodulename))
149 d[keyword] = unpack(item, formodulename)
153 return mkaetext(unpack(record, formodulename))
158 return struct.unpack('b', desc.data)[0]
174 return struct.unpack('d', data)[0]
181 return mkinsertionloc(unpack(record, formodulename))
184 script, language = struct.unpack('hh', desc.data[:4])
187 script, language = struct.unpack('hh', desc.data)
192 return struct.unpack('l', desc.data)[0]
194 a, b = struct.unpack('lL', desc.data)
199 v = struct.unpack('l', desc.data)
208 return mkobjectfrommodule(unpack(record, formodulename), formodulename)
209 return mkobject(unpack(record, formodulename))
215 v, h = struct.unpack('hh', desc.data)
218 v0, h0, v1, h1 = struct.unpack('hhhh', desc.data)
221 r, g, b = struct.unpack('hhh', desc.data)
227 return struct.unpack('f', desc.data)[0]
229 return struct.unpack('h', desc.data)[0]
246 return mkrange(unpack(record, formodulename))
249 return mkcomparison(unpack(record, formodulename))
252 return mklogical(unpack(record, formodulename))
260 return unpack(pdata)
263 # Helper routines for unpack