CefResourceReadCallback.cs 1000 B

123456789101112131415161718192021222324252627
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Callback for asynchronous continuation of CefResourceHandler::Read().
  10. /// </summary>
  11. public sealed unsafe partial class CefResourceReadCallback
  12. {
  13. /// <summary>
  14. /// Callback for asynchronous continuation of Read(). If |bytes_read| == 0
  15. /// the response will be considered complete. If |bytes_read| > 0 then Read()
  16. /// will be called again until the request is complete (based on either the
  17. /// result or the expected content length). If |bytes_read| &lt; 0 then the
  18. /// request will fail and the |bytes_read| value will be treated as the error
  19. /// code.
  20. /// </summary>
  21. public void Continue(int bytesRead)
  22. {
  23. cef_resource_read_callback_t.cont(_self, bytesRead);
  24. }
  25. }
  26. }