예제 #1
0
        /// <summary>
        /// Sets the value at the specified key as type binary. Returns true (1) if the
        /// value was set successfully. If |value| is currently owned by another object
        /// then the value will be copied and the |value| reference will not change.
        /// Otherwise, ownership will be transferred to this object and the |value|
        /// reference will be invalidated.
        /// </summary>
        public unsafe virtual bool SetBinary(string key, CefBinaryValue value)
        {
            fixed(char *s0 = key)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = key != null ? key.Length : 0
                };

                return(SafeCall(NativeInstance->SetBinary(&cstr0, (value != null) ? value.GetNativeInstance() : null) != 0));
            }
        }
예제 #2
0
 /// <summary>
 /// Sets the value at the specified index as type binary. Returns true (1) if
 /// the value was set successfully. If |value| is currently owned by another
 /// object then the value will be copied and the |value| reference will not
 /// change. Otherwise, ownership will be transferred to this object and the
 /// |value| reference will be invalidated.
 /// </summary>
 public unsafe virtual bool SetBinary(long index, CefBinaryValue value)
 {
     return(SafeCall(NativeInstance->SetBinary(new UIntPtr((ulong)index), (value != null) ? value.GetNativeInstance() : null) != 0));
 }
예제 #3
0
파일: CefValue.cs 프로젝트: wuzlai/AGTkDemo
 /// <summary>
 /// Sets the underlying value as type binary. Returns true (1) if the value was
 /// set successfully. This object keeps a reference to |value| and ownership of
 /// the underlying data remains unchanged.
 /// </summary>
 public unsafe virtual bool SetBinary(CefBinaryValue value)
 {
     return(SafeCall(NativeInstance->SetBinary((value != null) ? value.GetNativeInstance() : null) != 0));
 }
예제 #4
0
 /// <summary>
 /// Returns true (1) if this object and |that| object have an equivalent
 /// underlying value but are not necessarily the same object.
 /// </summary>
 public unsafe virtual bool IsEqual(CefBinaryValue that)
 {
     return(SafeCall(NativeInstance->IsEqual((that != null) ? that.GetNativeInstance() : null) != 0));
 }