Reads data from a memory stream.

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

Syntax

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

Parameters

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

Return Value

The number of full items actually read. 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