浏览代码

资料注释

tags/v1.3.0
SmallChi 6 年前
父节点
当前提交
145a67f615
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/JT809.Protocol/JT809Serializer.cs

+ 2
- 0
src/JT809.Protocol/JT809Serializer.cs 查看文件

@@ -25,6 +25,7 @@ namespace JT809.Protocol
// 源码:System.Memory.MemoryPool
// private static readonly MemoryPool<T> s_shared = new ArrayMemoryPool<T>();
// 单例内存池 不需要手动释放资源
// buffer.Dispose() 相当于调用ArrayPool<T>.Shared.Return(array)
buffer.Dispose();
}
}
@@ -50,6 +51,7 @@ namespace JT809.Protocol
// 源码:System.Memory.MemoryPool
// private static readonly MemoryPool<T> s_shared = new ArrayMemoryPool<T>();
// 单例内存池 不需要手动释放资源
// buffer.Dispose() 相当于调用ArrayPool<T>.Shared.Return(array)
buffer.Dispose();
}
}


正在加载...
取消
保存