Example #1
0
File: tag.py Project: adaptee/pyec
    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)
Example #2
0
    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)
Example #3
0
File: tag.py Project: adaptee/pyec
 def _pack_tagcount(self):
     return pack_uint16( len(self.subtags) )
Example #4
0
 def _pack_tagcount(self):
     return pack_uint16(len(self.subtags))