Przeglądaj źródła

资料注释

tags/v1.3.0
SmallChi 6 lat temu
rodzic
commit
145a67f615
1 zmienionych plików z 2 dodań i 0 usunięć
  1. +2
    -0
      src/JT809.Protocol/JT809Serializer.cs

+ 2
- 0
src/JT809.Protocol/JT809Serializer.cs Wyświetl plik

@@ -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();
}
}


Ładowanie…
Anuluj
Zapisz