1234567891011121314151617181920212223 |
- using System;
- namespace Xilium.CefGlue
- {
- public static class CefBrowserHostExtensions
- {
- public static unsafe bool SendDevToolsMessage(this CefBrowserHost browserHost, byte[] message)
- {
- fixed (byte* messagePtr = &message[0])
- {
- return browserHost.SendDevToolsMessage((IntPtr)messagePtr, message.Length);
- }
- }
- public static unsafe bool SendDevToolsMessage(this CefBrowserHost browserHost, ArraySegment<byte> message)
- {
- fixed (byte* messagePtr = &message.Array[message.Offset])
- {
- return browserHost.SendDevToolsMessage((IntPtr)messagePtr, message.Count);
- }
- }
- }
- }
|