Writes data to a memory stream.

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

Syntax

C#
public static uint WriteMemory(
	byte[] buffer,
	uint size,
	uint count,
	FIMEMORY stream
)
Visual Basic (Declaration)
Public Shared Function WriteMemory ( _
	buffer As Byte(), _
	size As UInteger, _
	count As UInteger, _
	stream As FIMEMORY _
) As UInteger
Visual C++
public:
static unsigned int WriteMemory(
	array<unsigned char>^ buffer, 
	unsigned int size, 
	unsigned int count, 
	FIMEMORY stream
)

Parameters

buffer
Type: array< System..::.Byte >[]()[]
The buffer to read the data from.
size
Type: System..::.UInt32
Size in bytes of the items.
count
Type: System..::.UInt32
Number of items to write.
stream
Type: FreeImageAPI..::.FIMEMORY
The stream to write to. The memory pointer associated with stream is increased by the number of bytes actually written.

Return Value

The number of full items actually written. May be less than count on error or stream-end.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also