Sfoglia il codice sorgente

资料注释

tags/v1.3.0
SmallChi 6 anni fa
parent
commit
145a67f615
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/JT809.Protocol/JT809Serializer.cs

+ 2
- 0
src/JT809.Protocol/JT809Serializer.cs Vedi File

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


Caricamento…
Annulla
Salva