StyledLines from testedlines.com: C# docs 1.0.1
GPT2-based text stylization LLM model, wrapped with Llama.cpp in Csharp to ensure compatibility across various platforms, including iOS and WebGL. The model is designed to transform generic texts into stylized, game or user-tailored dialogue.
Loading...
Searching...
No Matches
LlamaLibrary.FileWrapper Class Reference
+ Inheritance diagram for LlamaLibrary.FileWrapper:
+ Collaboration diagram for LlamaLibrary.FileWrapper:

Public Member Functions

virtual void Dispose ()
 
 FileWrapper ()
 

Static Public Member Functions

static bool Save (byte[] data, int data_length, string path)
 
static bool Save (string data, string path)
 
static bool Save (string data, uint data_length, string path)
 

Protected Attributes

bool swigCMemOwn
 

Package Functions

 FileWrapper (global::System.IntPtr cPtr, bool cMemoryOwn)
 

Static Package Functions

static global::System.Runtime.InteropServices.HandleRef getCPtr (FileWrapper obj)
 

Private Member Functions

 ~FileWrapper ()
 

Private Attributes

global::System.Runtime.InteropServices.HandleRef swigCPtr
 

Constructor & Destructor Documentation

◆ FileWrapper() [1/2]

LlamaLibrary.FileWrapper.FileWrapper ( global::System::IntPtr cPtr,
bool cMemoryOwn )
package

◆ ~FileWrapper()

LlamaLibrary.FileWrapper.~FileWrapper ( )
private

References LlamaLibrary.FileWrapper.Dispose().

+ Here is the call graph for this function:

◆ FileWrapper() [2/2]

LlamaLibrary.FileWrapper.FileWrapper ( )

Member Function Documentation

◆ Dispose()

virtual void LlamaLibrary.FileWrapper.Dispose ( )
virtual

References LlamaLibrary.libllama_libPINVOKE.delete_FileWrapper(), LlamaLibrary.FileWrapper.swigCMemOwn, and LlamaLibrary.FileWrapper.swigCPtr.

Referenced by LlamaLibrary.FileWrapper.~FileWrapper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCPtr()

static global.System.Runtime.InteropServices.HandleRef LlamaLibrary.FileWrapper.getCPtr ( FileWrapper obj)
staticpackage

◆ Save() [1/3]

static bool LlamaLibrary.FileWrapper.Save ( byte[] data,
int data_length,
string path )
static

References LlamaLibrary.libllama_libPINVOKE.FileWrapper_Save__SWIG_1(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, and LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve().

+ Here is the call graph for this function:

◆ Save() [2/3]

static bool LlamaLibrary.FileWrapper.Save ( string data,
string path )
static

References LlamaLibrary.libllama_libPINVOKE.FileWrapper_Save__SWIG_0(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, and LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve().

Referenced by Assets.StyledLines.Runtime.LlamaInfrenceUnity.ModelController.ModelController(), and Assets.StyledLines.Runtime.LlamaInfrenceUnity.RunModelAsync.Start().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Save() [3/3]

static bool LlamaLibrary.FileWrapper.Save ( string data,
uint data_length,
string path )
static

References LlamaLibrary.libllama_libPINVOKE.FileWrapper_Save__SWIG_2(), LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Pending, and LlamaLibrary.libllama_libPINVOKE.SWIGPendingException.Retrieve().

+ Here is the call graph for this function:

Member Data Documentation

◆ swigCMemOwn

bool LlamaLibrary.FileWrapper.swigCMemOwn
protected

◆ swigCPtr

global.System.Runtime.InteropServices.HandleRef LlamaLibrary.FileWrapper.swigCPtr
private

The documentation for this class was generated from the following file: