UnmanagedMessageAttribute.cs 496 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Runtime.CompilerServices;
  7. namespace EasyMQ
  8. {
  9. /// <summary>
  10. /// 使用<see cref="Unsafe.CopyBlock(ref byte, ref byte, uint)"/>方法进行数据转换
  11. /// 因此在结构体中不支持字符串和不定长数据
  12. /// </summary>
  13. [AttributeUsage(AttributeTargets.Struct)]
  14. public sealed class UnmanagedMessageAttribute:Attribute
  15. {
  16. }
  17. }