code: def alloc_data(self, value):
          
  
          if isinstance(value, six.binary_type):
              return self._alloc_data(value)
          elif isinstance(value, six.text_type):
              return self._alloc_data(value.encode('utf-8') + b'\0')
          else:
              raise TypeError('No idea how to encode %s' % repr(value))
docs: Allocate a piece of data that will be included in the shellcode body.
  
          Arguments:
              value(...): The value to add to the shellcode. Can be bytes or
                  string type.
  
          Returns:
              ~pwnypack.types.Offset: The offset used to address the data.