using NTwain.Data;
using NTwain.Internals;
namespace NTwain.Triplets
{
///
/// Represents .
///
public sealed class SetupMemXfer : OpBase
{
internal SetupMemXfer(ITwainStateInternal session) : base(session) { }
///
/// Returns the Source’s preferred, minimum, and maximum allocation sizes for transfer memory
/// buffers.
///
/// The setup mem xfer.
///
public ReturnCode Get(out TWSetupMemXfer setupMemXfer)
{
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupMemXfer, Message.Get);
setupMemXfer = new TWSetupMemXfer();
return Dsm.DsmEntry(Session.AppId, Session.SourceId, Message.Get, setupMemXfer);
}
}
}