@classmethod
    def pack(cls, obj):
        "return: (tlvlen, tlvdata)"
        tmp = struct.pack(cls.datafmt, cls.getvalue(obj))
        return len(tmp) - cls.padlen, tmp
dataset/ETHPy150Open coreemu/core/daemon/core/api/coreapi.py/CoreTlvDataObj.pack/original