Example #1
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>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public bool SetBinary(int index, CfxBinaryValue value)
 {
     return(0 != CfxApi.cfx_list_value_set_binary(NativePtr, index, CfxBinaryValue.Unwrap(value)));
 }
Example #2
0
 /// <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>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public bool SetBinary(CfxBinaryValue value)
 {
     return(0 != CfxApi.cfx_value_set_binary(NativePtr, CfxBinaryValue.Unwrap(value)));
 }
        /// <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>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool SetBinary(string key, CfxBinaryValue value)
        {
            var key_pinned = new PinnedString(key);
            var __retval   = CfxApi.DictionaryValue.cfx_dictionary_value_set_binary(NativePtr, key_pinned.Obj.PinnedPtr, key_pinned.Length, CfxBinaryValue.Unwrap(value));

            key_pinned.Obj.Free();
            return(0 != __retval);
        }
Example #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>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public bool IsEqual(CfxBinaryValue that)
 {
     return(0 != CfxApi.BinaryValue.cfx_binary_value_is_equal(NativePtr, CfxBinaryValue.Unwrap(that)));
 }
Example #5
0
 /// <summary>
 /// Returns true (1) if this object and |that| object have the same underlying
 /// data.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public bool IsSame(CfxBinaryValue that)
 {
     return(0 != CfxApi.cfx_binary_value_is_same(NativePtr, CfxBinaryValue.Unwrap(that)));
 }
Example #6
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>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public bool SetBinary(ulong index, CfxBinaryValue value)
 {
     return(0 != CfxApi.ListValue.cfx_list_value_set_binary(NativePtr, (UIntPtr)index, CfxBinaryValue.Unwrap(value)));
 }