code: def encode_contents(self):
          
  
          header = struct.pack("<LL", self.offset, len(self.raw_data))
          return bytearray(header) + self.raw_data
docs: Encode the contents of this update record without including a record header.
  
          Returns:
              bytearary: The encoded contents.