Example #1
0
        public void CopyBufferToBufferHolder(int index, byte[] data)
        {
            int len = data.Length;

            unsafe
            {
                IntPtr bufferHolderPtr;
                fixed(byte *head = &data[0])
                {
                    //native side copy the managed data and store at the native side
                    bufferHolderPtr = Cef3Binder.MyCefCreateBufferHolderWithInitData(len, head);
                }

                SetAsIntPtr(this.rawNativeArgs, index, bufferHolderPtr);
            }
        }