Click or drag to resize

AiFileReadProc Delegate

Callback delegate for a custom file system, to read from a file.

Namespace: Internal.Assimp.Unmanaged
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public delegate UIntPtr AiFileReadProc(
	IntPtr file,
	IntPtr dataToRead,
	UIntPtr sizeOfElemInBytes,
	UIntPtr numElements
)

Parameters

file  IntPtr
Pointer to an AiFile instance.
dataToRead  IntPtr
Char* pointer that will store the data read (casted from a void*)
sizeOfElemInBytes  UIntPtr
Size of a single element in bytes to read
numElements  UIntPtr
Number of elements to read

Return Value

UIntPtr
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.
See Also