hifeng

hifeng

V2EX member #625225, joined on 2023-04-21 16:11:51 +08:00
Today's activity rank 15033
hifeng's recent replies
类里面建个队列,ConcurrentQueue<byte[]> datas =new ConcurrentQueue<byte[]>(2000)
回调直接读 BytesToRead 到 buff,
添加到队列 datas.Enqueue(buff) 就返回;
另外一个线程去处理 datas;
用了一个 e61919b01ca578a9 ,谢谢.
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3694 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 04:29 · PVG 12:29 · LAX 21:29 · JFK 00:29
♥ Do have faith in what you're doing.