//BufferChunk m_bufChunk;// = new BufferChunk(16 * 1024, 64 * 1024 * 1024); IntPtr BufAlloc(int size) { if (size > 16 * 1024) { throw new Exception("BufAlloc size过大 size:" + size.ToString()); } return(BufferPoolForNative.GetBuf()); }
void BufFree(IntPtr p) { BufferPoolForNative.Return(p); }