Click or drag to resize

TwainMemoryReadStructure Method (Type, Int64)

Reads a structure from the specified memory offset.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.1.0.0.0.321 (.NET 4.5.2, x86)
Syntax
public Object ReadStructure(
	Type type,
	long offset
)

Parameters

type
Type: SystemType
A Type for the structure being read.
offset
Type: SystemInt64
The number of bytes from the beginning of the memory to the start of the data.

Return Value

Type: Object
The structure read from memory.
Exceptions
ExceptionCondition
Thrown if the TwainMemory has been disposed.
Thrown if the offset is invalid for this TwainMemory object.
Thrown if the type is null (Nothing in VB).
Remarks
This method does not change the Position of the TwainMemory object.
See Also