/// <summary> /// 释放那些实现IDisposable接口的托管对象 /// </summary> /// <param name="disposing"></param> protected override void OnDispose(bool disposing) { if (disposing) { // 释放那些实现IDisposable接口的托管对象 } CBufferPool.ReleaseBuffer(this); m_Length = 0; }
public static CBuffer Create(int bufSize) { return(CBufferPool.GetBuffer(bufSize)); }