static bool OnHandleFlushBufferComplete(IAsyncResult result)
            {
                WriteBytesAsyncResult thisPtr = (WriteBytesAsyncResult)result.AsyncState;

                return(thisPtr.HandleFlushBuffer(result));
            }
            static bool OnHandleWrite(IAsyncResult result)
            {
                WriteBytesAsyncResult thisPtr = (WriteBytesAsyncResult)result.AsyncState;

                return(thisPtr.HandleWrite(result));
            }
 public void EndWriteBytes(IAsyncResult result)
 {
     WriteBytesAsyncResult.End(result);
 }