def _pack_name(self): tagname = codes.tags[self.tagname] if self.subtags : tagname = tagname * 2 + 1 else: tagname = tagname * 2 # FIXME : should we alwasy send utf-8-lized number, instead? return pack_uint16(tagname)
def _pack_name(self): tagname = codes.tags[self.tagname] if self.subtags: tagname = tagname * 2 + 1 else: tagname = tagname * 2 # FIXME : should we alwasy send utf-8-lized number, instead? return pack_uint16(tagname)
def _pack_tagcount(self): return pack_uint16( len(self.subtags) )
def _pack_tagcount(self): return pack_uint16(len(self.subtags))