![]()  | 
  
    Llama.cpp C++-to-Csharp wrapper from testedlines.com: C++ docs 1.0.1
    
   Llama.cpp C++-to-Csharp wrapper is a minor extension to Llama.cpp tag b3490 codebase modified a bit by testedlines allowing it to be compiled for and called from Styled Lines Csharp unity asset store package. 
   | 
 
Provides static utility functions for saving data to files. More...
#include <lib.h>
 Collaboration diagram for FileWrapper:Static Public Member Functions | |
| static bool | Save (const char *data, std::size_t data_length, const std::string &path) | 
| Saves data to a file.   | |
| static bool | Save (const std::string &data, const std::string &path) | 
| Saves string data to a file.   | |
| static bool | Save (unsigned char *data, long data_length, const std::string &path) | 
| Saves binary data to a file.   | |
Provides static utility functions for saving data to files.
The FileWrapper class offers methods to save data in various formats (string, binary data) to a file specified by a path. It provides an easy interface to handle different data types and ensures proper file operations are performed.
      
  | 
  static | 
Saves data to a file.
This method is a helper function that writes raw data to a file at the specified path. It is used internally by other Save methods to handle the actual file operations.
| data | A pointer to the raw data to be written to the file. | 
| data_length | The length of the data. | 
| path | The path where the file will be saved. | 
      
  | 
  static | 
Saves string data to a file.
This method writes the contents of a string to a file at the specified path.
| data | The string data to be written to the file. | 
| path | The path where the file will be saved. | 
      
  | 
  static | 
Saves binary data to a file.
This method writes the contents of a binary data buffer to a file at the specified path.
| data | A pointer to the binary data to be written to the file. | 
| data_length | The length of the binary data. | 
| path | The path where the file will be saved. |