Lines Matching refs:ty
59 def showty(ty): argument
60 if ty == TY_OBJECT:
62 if ty == TY_BOOLEAN:
64 if ty == TY_CHAR:
66 if ty == TY_FLOAT:
68 if ty == TY_DOUBLE:
70 if ty == TY_BYTE:
72 if ty == TY_SHORT:
74 if ty == TY_INT:
76 if ty == TY_LONG:
78 raise Exception("Unsupported type %d" % ty)
114 def valsize(ty): argument
115 if ty == TY_OBJECT:
117 if ty == TY_BOOLEAN:
119 if ty == TY_CHAR:
121 if ty == TY_FLOAT:
123 if ty == TY_DOUBLE:
125 if ty == TY_BYTE:
127 if ty == TY_SHORT:
129 if ty == TY_INT:
131 if ty == TY_LONG:
133 raise Exception("Unsupported type %d" % ty)
135 def readval(ty, hprof): argument
136 return readN(valsize(ty), hprof)
266 ty = readu1(hprof) ; length -= 1 variable
267 val = readval(ty, hprof) ; length -= valsize(ty)
268 print " %d %s 0x%x" % (idx, showty(ty), val)
274 ty = readu1(hprof) ; length -= 1 variable
275 val = readval(ty, hprof) ; length -= valsize(ty)
276 print " %s %s 0x%x" % (showstr(nameid), showty(ty), val)
282 ty = readu1(hprof) ; length -= 1 variable
283 print " %s %s" % (showstr(nameid), showty(ty))
306 ty = readu1(hprof) ; length -= 1 variable
307 hprof.read(valsize(ty)*count) ; length -= (valsize(ty)*count)