Delegate to the C++ function fread.

Namespace:  FreeImageAPI.IO
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public delegate uint ReadProc(
	IntPtr buffer,
	uint size,
	uint count,
	fi_handle handle
)
Visual Basic (Declaration)
Public Delegate Function ReadProc ( _
	buffer As IntPtr, _
	size As UInteger, _
	count As UInteger, _
	handle As fi_handle _
) As UInteger
Visual C++
public delegate unsigned int ReadProc(
	IntPtr buffer, 
	unsigned int size, 
	unsigned int count, 
	fi_handle handle
)

Parameters

buffer
Type: System..::.IntPtr
Pointer to read from.
size
Type: System..::.UInt32
Item size in bytes.
count
Type: System..::.UInt32
Maximum number of items to be read.
handle
Type: FreeImageAPI.IO..::.fi_handle
Handle/stream to read from.

Return Value

Number of full items actually read, which may be less than count if an error occurs or if the end of the file is encountered before reaching count.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also