internal void ResponseAjax(ref byte *buffer) { AjaxStream.Reset(buffer = AutoCSer.UnmanagedPool.Default.Get(), AutoCSer.UnmanagedPool.DefaultSize); using (AjaxStream) { SetJsContentType(); bool isCallBack = ResponseAjaxCallBack(AjaxStream); ajax(AjaxStream); if (isCallBack) { AjaxStream.Write(')'); } PageResponse.SetBody(AjaxStream, ref DomainServer.ResponseEncoding); } }
internal void ResponseAjax(ref AutoCSer.Memory.Pointer buffer) { buffer = UnmanagedPool.Default.GetPointer(); AjaxStream.Reset(ref buffer); using (AjaxStream) { SetJsContentType(); bool isCallBack = ResponseAjaxCallBack(AjaxStream); ajax(AjaxStream); if (isCallBack) { AjaxStream.Write(')'); } PageResponse.SetBody(AjaxStream, ref DomainServer.ResponseEncoding); } }