mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
27 lines
1.5 KiB
C#
27 lines
1.5 KiB
C#
using NTwain.Data;
|
||
using NTwain.Internals;
|
||
|
||
namespace NTwain.Triplets
|
||
{
|
||
/// <summary>
|
||
/// Represents <see cref="DataArgumentType.SetupMemXfer"/>.
|
||
/// </summary>
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mem")]
|
||
public sealed class SetupMemXfer : OpBase
|
||
{
|
||
internal SetupMemXfer(ITwainSessionInternal session) : base(session) { }
|
||
/// <summary>
|
||
/// Returns the Source’s preferred, minimum, and maximum allocation sizes for transfer memory
|
||
/// buffers.
|
||
/// </summary>
|
||
/// <param name="setupMemXfer">The setup mem xfer.</param>
|
||
/// <returns></returns>
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mem"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||
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.CurrentSource.Identity, Message.Get, setupMemXfer);
|
||
}
|
||
}
|
||
} |