Serialization operations  
More...
Serialization operations 
Serialization operation parts in interface:
 Copy this to your project and extend with your parts or leave functions complete away where not used or supported.
◆ Deserialize()
  
  
      
        
          | virtual GAME_ERROR kodi::addon::CInstanceGame::Deserialize  | 
          ( | 
          const uint8_t * |           data,  | 
         
        
           | 
           | 
          size_t |           size ) | 
         
       
   | 
  
inlinevirtual   | 
  
 
Deserialize the game from the given state. 
- Parameters
 - 
  
    | [in] | data | A buffer containing the game's new state  | 
    | [in] | size | The size of the buffer | 
  
   
- Returns
 - The error, or GAME_ERROR_NO_ERROR if the game deserialized 
 
 
 
◆ Serialize()
  
  
      
        
          | virtual GAME_ERROR kodi::addon::CInstanceGame::Serialize  | 
          ( | 
          uint8_t * |           data,  | 
         
        
           | 
           | 
          size_t |           size ) | 
         
       
   | 
  
inlinevirtual   | 
  
 
Serialize the state of the game. 
- Parameters
 - 
  
    | [in] | data | The buffer receiving the serialized game data  | 
    | [in] | size | The size of the buffer | 
  
   
- Returns
 - The error, or GAME_ERROR_NO_ERROR if the game was serialized into the buffer 
 
 
 
◆ SerializeSize()
  
  
      
        
          | virtual size_t kodi::addon::CInstanceGame::SerializeSize  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
Get the number of bytes required to serialize the game. 
- Returns
 - The number of bytes, or 0 if serialization is not supported