code: def encode(self):
          
  
          header = struct.pack("<LB3x", len(self.record_contents) + UpdateRecord.HEADER_LENGTH, self.record_type)
          return bytearray(header) + self.record_contents
docs: Encode this record into binary, suitable for embedded into an update script.
  
          This function just adds the required record header and copies the raw data
          we were passed in verbatim since we don't know what it means
  
          Returns:
              bytearary: The binary version of the record that could be parsed via
                  a call to UpdateRecord.FromBinary()