mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 01:02:12 +08:00
P2p first version
This commit is contained in:
1 parent
204c53ddd3
commit
534d428c6d
23 files changed
+986
-77
No files matched your search
@@ -42,6 +42,7 @@ func PutBufPoolUdp(buf []byte) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func PutBufPoolCopy(buf []byte) {
|
||||
if cap(buf) == PoolSizeCopy {
|
||||
BufPoolCopy.Put(buf[:PoolSizeCopy])
|
||||
|
||||
Reference in new issue
Block a user