Delegate AiFileWriteProc
Callback delegate for a custom file system, to write to a file.
Namespace: SharpAssimp.Unmanaged
Assembly: SharpAssimp.dll
Syntax
public delegate nuint AiFileWriteProc(nint file, nint dataToWrite, nuint sizeOfElemInBytes, nuint numElements)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | file | Pointer to an AiFile instance |
| nint | dataToWrite | Char* pointer to data to write (casted from a void*) |
| nuint | sizeOfElemInBytes | Size of a single element in bytes to write |
| nuint | numElements | Number of elements to write |
Returns
| Type | Description |
|---|---|
| nuint | Number of elements successfully written. Should be zero if either size or numElements is zero. May be less than numElements if an error occured. |