ANTFS_ResponseParameters.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except
  4. in compliance with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2016
  6. All rights reserved.
  7. */
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Runtime.InteropServices;
  13. namespace ANT_Managed_Library.ANTFS
  14. {
  15. /// <summary>
  16. /// Application defined parameters for a download response
  17. /// </summary>
  18. [StructLayout(LayoutKind.Sequential)]
  19. public struct ANTFS_DownloadParameters
  20. {
  21. /// <summary>
  22. /// File index of requested download
  23. /// </summary>
  24. public ushort FileIndex;
  25. /// <summary>
  26. /// Maximum number of bytes to send in a single block
  27. /// </summary>
  28. public uint MaxBlockSize;
  29. }
  30. /// <summary>
  31. /// Application defined parameters for an upload response
  32. /// </summary>
  33. [StructLayout(LayoutKind.Sequential)]
  34. public struct ANTFS_UploadParameters
  35. {
  36. /// <summary>
  37. /// File index of requested upload
  38. /// </summary>
  39. public ushort FileIndex;
  40. /// <summary>
  41. /// Maximum file size that can be stored in requested upload location
  42. /// </summary>
  43. public uint MaxFileSize;
  44. /// <summary>
  45. /// Maximum number of bytes that can be received in a single block
  46. /// </summary>
  47. public uint MaxBlockSize;
  48. }
  49. }