예제 #1
0
        private int skip(cef_resource_handler_t *self, long bytes_to_skip, long *bytes_skipped, cef_resource_skip_callback_t *callback)
        {
            CheckSelf(self);

            var m_callback = CefResourceSkipCallback.FromNative(callback);

            var m_result = Skip(bytes_to_skip, out var m_bytesSkipped, m_callback);

            *bytes_skipped = m_bytesSkipped;

            return(m_result ? 1 : 0);
        }
예제 #2
0
 /// <summary>
 /// Skip response data when requested by a Range header. Skip over and discard
 /// |bytes_to_skip| bytes of response data. If data is available immediately
 /// set |bytes_skipped| to the number of bytes skipped and return true. To
 /// read the data at a later time set |bytes_skipped| to 0, return true and
 /// execute |callback| when the data is available. To indicate failure set
 /// |bytes_skipped| to &lt; 0 (e.g. -2 for ERR_FAILED) and return false. This
 /// method will be called in sequence but not from a dedicated thread.
 /// </summary>
 protected abstract bool Skip(long bytesToSkip, out long bytesSkipped, CefResourceSkipCallback callback);