TwainMemory Methods |
The TwainMemory type exposes the following members.
Name | Description | |
---|---|---|
Allocate | Call this method to allocate memory for this object. If memory has already been allocated, it will be
released before allocation new memory. | |
Copy(Byte, IntPtr) | Copies data from a pointer into a byte array. | |
Copy(IntPtr, Byte) | Copies a byte array into a pointer. | |
Copy(IntPtr, IntPtr, Int32) | Copies memory from one pointer to another. | |
Create | Returns a new TwainMemory object with no memory allocated. | |
Create(IntPtr) | Creates a new TwainMemory object for a pointer returned from TWAIN. | |
Dispose | Releases the memory used by the object. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Called by .NET when the object is being destroyed. (Overrides ObjectFinalize.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Lock | Locks the moveable memory for read / write operations. | |
ReadBoolean | Reads a TW_BOOL from the current Position and advances the
position. | |
ReadBoolean(Int64) | Reads a TW_BOOL from the specified memory offset. | |
ReadInt16 | Reads a TW_INT16 from the current Position and advances the
position. | |
ReadInt16(Int64) | Reads a TW_INT16 from the specified memory offset. | |
ReadInt32 | Reads a TW_INT32 from the current Position and advances the
position. | |
ReadInt32(Int64) | Reads a TW_INT32 from the specified memory offset. | |
ReadInt8 | Reads a TW_INT8 from the current Position and advances the
position. | |
ReadInt8(Int64) | Reads a TW_INT8 from the specified offset. | |
ReadIntPtr | Reads a TW_HANDLE from the current Position and advances the
position. | |
ReadIntPtr(Int64) | Reads a TW_HANDLE from the specified memory offset. | |
ReadString(TwainItemType) | Reads a TW_STR32, TW_STR64, TW_STR128,
TW_STR255, TW_STR1024 or TW_UNI512 from the current Position and advances the position. | |
ReadString(TwainItemType, Int64) | Reads a TW_STR32, TW_STR64, TW_STR128,
TW_STR255, TW_STR1024 or TW_UNI512 from the specified memory
offset. | |
ReadStructure(Type) | Reads a structure from the current Position and advances the position by the
structure memory size. | |
ReadStructure(Type, Int64) | Reads a structure from the specified memory offset. | |
ReadTwainMemory | Reads a TW_HANDLE from the current Position and advances the
position. | |
ReadTwainMemory(Int64) | Reads a TW_HANDLE from the specified memory offset. | |
ReadUInt16 | Reads a TW_UINT16 from the current Position and advances the
position. | |
ReadUInt16(Int64) | Reads a TW_UINT16 from the specified memory offset. | |
ReadUInt32 | Reads a TW_UINT32 from the current Position and advances the
position. | |
ReadUInt32(Int64) | Reads a TW_UINT32 from the specified memory offset. | |
ReadUInt8 | Reads a TW_UINT8 from the current Position. | |
ReadUInt8(Int64) | Reads a TW_UINT8 from the specified offset. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unlock | Unlocks the moveable memory when finished reading or writing. | |
Write(Byte) | Writes a byte array into the memory at the current Position and advances the
position. | |
Write(Byte, Int64) | Writes a byte array into the memory at the specified memory offset. | |
WriteBoolean(Boolean) | Writes a TW_BOOL into the memory at the current Position and
advances the position. | |
WriteBoolean(Boolean, Int64) | Writes a TW_BOOL to memory at the specified memory offset. | |
WriteInt16(Int16) | Writes a TW_INT16 into the memory at the current Position and
advances the position. | |
WriteInt16(Int16, Int64) | Writes a TW_INT16 to memory at the specified memory offset. | |
WriteInt32(Int32) | Writes a TW_INT32 into the memory at the current Position and
advances the position. | |
WriteInt32(Int32, Int64) | Writes a TW_INT32 to memory at the specified memory offset. | |
WriteInt8(SByte) | Writes a TW_INT8 to the memory at the current Position.
| |
WriteInt8(SByte, Int64) | Writes a TW_INT8 to the specified offset. | |
WriteIntPtr(IntPtr) | Writes a TW_HANDLE into the memory at the current Position and
advances the position. | |
WriteIntPtr(IntPtr, Int64) | Writes a TW_HANDLE to memory at the specified memory offset. | |
WriteString(String, TwainItemType) | Writes a TW_STR32, TW_STR64, TW_STR128,
TW_STR255, TW_STR1024 or TW_UNI512 into memory at the current
position and advances the position. | |
WriteString(String, TwainItemType, Int64) | Writes a TW_STR32, TW_STR64, TW_STR128,
TW_STR255, TW_STR1024 or TW_UNI512 into memory at the specified
offset. | |
WriteStructure(Object) | Writes a structure into the memory at the current Position and advances the
position. | |
WriteStructure(Object, Int64) | Writes a structure to memory at the specified memory offset. | |
WriteUInt16(UInt16) | Writes a TW_UINT16 into the memory at the current Position and
advances the position. | |
WriteUInt16(UInt16, Int64) | Writes a TW_UINT16 to memory at the specified memory offset. | |
WriteUInt32(UInt32) | Writes a TW_UINT32 into the memory at the current Position and
advances the position. | |
WriteUInt32(UInt32, Int64) | Writes a TW_UINT32 to memory at the specified memory offset. | |
WriteUInt8(Byte) | Writes a TW_UINT8 to the current Position. | |
WriteUInt8(Byte, Int64) | Writes a TW_UINT8 to the specified offset. |