Lines Matching refs:type
37 type = TAG_TYPES[args[0]][1]
39 type = args[0]
51 self.tag = (type << 20) | (id << 10) | size
72 def type(self): member in Tag
97 return self.type & 0xff
103 def is_(self, type): argument
105 if ' ' in type:
106 type1, type3 = type.split()
108 (self.type & ~TAG_TYPES[type1][0]) == int(type3, 0))
110 return self.type == int(type, 0)
113 return (self.type & TAG_TYPES[type][0]) == TAG_TYPES[type][1]
122 ntag = Tag(self.type, nid, self.size)
141 if (mask, self.type & mask) in reverse_types:
142 type = reverse_types[mask, self.type & mask]
145 type, self.type & ((1 << prefix)-1), crc_status)
147 return '%s%s' % (type, crc_status)
149 return '%02x%s' % (self.type, crc_status)
161 return (self.id, self.type) < (other.id, other.type)
236 tag = Tag(int(tag) ^ ((tag.type & 1) << 31))
387 parser.add_argument('block_size', type=lambda x: int(x, 0),
389 parser.add_argument('block1', type=lambda x: int(x, 0),
391 parser.add_argument('block2', nargs='?', type=lambda x: int(x, 0),