parameters: (self, raw_format: str = "deprecated")
return_statement: return ctypes2buffer(cptr, length.value)
docstring: Save the model to a in memory buffer representation instead of file.
  
          Parameters
          ----------
          raw_format :
              Format of output buffer. Can be `json`, `ubj` or `deprecated`.  Right now
              the default is `deprecated` but it will be changed to `ubj` (univeral binary
              json) in the future.
  
          Returns
          -------
          An in memory buffer representation of the model
docstring_summary: Save the model to a in memory buffer representation instead of file.
docstring_tokens: Save the model to a in memory buffer representation instead of file .
function: def save_raw(self, raw_format: str = "deprecated") -> bytearray:
          """Save the model to a in memory buffer representation instead of file.
  
          Parameters
          ----------
          raw_format :
              Format of output buffer. Can be `json`, `ubj` or `deprecated`.  Right now
              the default is `deprecated` but it will be changed to `ubj` (univeral binary
              json) in the future.
  
          Returns
          -------
          An in memory buffer representation of the model
          """
          length = c_bst_ulong()
          cptr = ctypes.POINTER(ctypes.c_char)()
          config = from_pystr_to_cstr(json.dumps({"format": raw_format}))
          _check_call(
              _LIB.XGBoosterSaveModelToBuffer(
                  self.handle, config, ctypes.byref(length), ctypes.byref(cptr)
              )
          )
          return ctypes2buffer(cptr, length.value)
function_tokens: def save_raw ( self , raw_format : str = "deprecated" ) -> bytearray : length = c_bst_ulong ( ) cptr = ctypes . POINTER ( ctypes . c_char ) ( ) config = from_pystr_to_cstr ( json . dumps ( { "format" : raw_format } ) ) _check_call ( _LIB . XGBoosterSaveModelToBuffer ( self . handle , config , ctypes . byref ( length ) , ctypes . byref ( cptr ) ) ) return ctypes2buffer ( cptr , length . value )