Delegate to the C++ function fwrite.

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

Syntax

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

Parameters

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

Return Value

Number of full items actually written, which may be less than count if an error occurs. Also, if an error occurs, the file-position indicator cannot be determined.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also