bl2/ext/mcuboot/scripts/imgtool_lib/image.py
def add(self, kind, payload):
        """Add a TLV record.  Kind should be a string found in TLV_VALUES above."""
        buf = struct.pack('<BBH', TLV_VALUES[kind], 0, len(payload))
        self.buf += buf
        self.buf += payload
Add a TLV record.  Kind should be a string found in TLV_VALUES above.
Add a TLV record.  Kind should be a string found in TLV_VALUES above.
Add a TLV record . Kind should be a string found in TLV_VALUES above .
def add(self, kind, payload):
        buf = struct.pack('<BBH', TLV_VALUES[kind], 0, len(payload))
        self.buf += buf
        self.buf += payload
def add ( self , kind , payload ) : buf = struct . pack ( '<BBH' , TLV_VALUES [ kind ] , 0 , len ( payload ) ) self . buf += buf self . buf += payload
Add a TLV record.
Add a TLV record .
"""Add a TLV record.  Kind should be a string found in TLV_VALUES above."""
self
kind
payload