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