kyy
2025-07-02 07558e32634314eec359ec8437d97bdc5def64f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Copyright © 2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
 
#pragma once
 
namespace CefSharp
{
    namespace Internals
    {
        namespace Serialization
        {
            //Functions to serialize/deserialize specific types into CefBinaryValue
 
            template<typename TList, typename TIndex>
            void SetInt64(const CefRefPtr<TList>& list, TIndex index, const int64_t&value);
            template<typename TList, typename TIndex>
            int64_t GetInt64(const CefRefPtr<TList>& list, TIndex index);
            template<typename TList, typename TIndex>
            bool IsInt64(const CefRefPtr<TList>& list, TIndex index);
 
            template<typename TList, typename TIndex>
            void SetCefTime(const CefRefPtr<TList>& list, TIndex index, const int64_t&value);
            template<typename TList, typename TIndex>
            CefBaseTime GetCefTime(const CefRefPtr<TList>& list, TIndex index);
            template<typename TList, typename TIndex>
            bool IsCefTime(const CefRefPtr<TList>& list, TIndex index);
 
            template<typename TList, typename TIndex>
            void SetArrayBuffer(const CefRefPtr<TList>& list, TIndex index, const size_t& size, const void* value);
            template<typename TList, typename TIndex>
            cli::array<Byte>^ GetArrayBuffer(const CefRefPtr<TList>& list, TIndex index);
            template<typename TList, typename TIndex>
            bool IsArrayBuffer(const CefRefPtr<TList>& list, TIndex index);
 
            template<typename TList, typename TIndex>
            void SetJsCallback(const CefRefPtr<TList>& list, TIndex index, JavascriptCallback^ value);
            template<typename TList, typename TIndex>
            JavascriptCallback^ GetJsCallback(const CefRefPtr<TList>& list, TIndex index);
            template<typename TList, typename TIndex>
            bool IsJsCallback(const CefRefPtr<TList>& list, TIndex index);
 
            template void SetInt64(const CefRefPtr<CefListValue>& list, int index, const int64_t&value);
            template void SetInt64(const CefRefPtr<CefListValue>& list, size_t index, const int64_t&value);
            template void SetInt64(const CefRefPtr<CefDictionaryValue>& list, CefString index, const int64_t&value);
            template int64_t GetInt64(const CefRefPtr<CefListValue>& list, int index);
            template int64_t GetInt64(const CefRefPtr<CefListValue>& list, size_t index);
            template int64_t GetInt64(const CefRefPtr<CefDictionaryValue>& list, CefString index);
            template bool IsInt64(const CefRefPtr<CefListValue>& list, int index);
            template bool IsInt64(const CefRefPtr<CefListValue>& list, size_t index);
            template bool IsInt64(const CefRefPtr<CefDictionaryValue>& list, CefString index);
 
            template void SetCefTime(const CefRefPtr<CefListValue>& list, int index, const int64_t&value);
            template void SetCefTime(const CefRefPtr<CefListValue>& list, size_t index, const int64_t&value);
            template void SetCefTime(const CefRefPtr<CefDictionaryValue>& list, CefString index, const int64_t&value);
            template CefBaseTime GetCefTime(const CefRefPtr<CefListValue>& list, int index);
            template CefBaseTime GetCefTime(const CefRefPtr<CefListValue>& list, size_t index);
            template CefBaseTime GetCefTime(const CefRefPtr<CefDictionaryValue>& list, CefString index);
            template bool IsCefTime(const CefRefPtr<CefListValue>& list, size_t index);
            template bool IsCefTime(const CefRefPtr<CefListValue>& list, int index);
            template bool IsCefTime(const CefRefPtr<CefDictionaryValue>& list, CefString index);
 
            template void SetArrayBuffer(const CefRefPtr<CefListValue>& list, int index, const size_t& size, const void* value);
            template void SetArrayBuffer(const CefRefPtr<CefListValue>& list, size_t index, const size_t& size, const void* value);
            template void SetArrayBuffer(const CefRefPtr<CefDictionaryValue>& list, CefString index, const size_t& size, const void* value);
            template cli::array<Byte>^ GetArrayBuffer(const CefRefPtr<CefListValue>& list, int index);
            template cli::array<Byte>^ GetArrayBuffer(const CefRefPtr<CefListValue>& list, size_t index);
            template cli::array<Byte>^ GetArrayBuffer(const CefRefPtr<CefDictionaryValue>& list, CefString index);
            template bool IsArrayBuffer(const CefRefPtr<CefListValue>& list, size_t index);
            template bool IsArrayBuffer(const CefRefPtr<CefListValue>& list, int index);
            template bool IsArrayBuffer(const CefRefPtr<CefDictionaryValue>& list, CefString index);
 
            template void SetJsCallback(const CefRefPtr<CefListValue>& list, int index, JavascriptCallback^ value);
            template void SetJsCallback(const CefRefPtr<CefListValue>& list, size_t index, JavascriptCallback^ value);
            template void SetJsCallback(const CefRefPtr<CefDictionaryValue>& list, CefString index, JavascriptCallback^ value);
            template JavascriptCallback^ GetJsCallback(const CefRefPtr<CefListValue>& list, int index);
            template JavascriptCallback^ GetJsCallback(const CefRefPtr<CefListValue>& list, size_t index);
            template JavascriptCallback^ GetJsCallback(const CefRefPtr<CefDictionaryValue>& list, CefString index);
            template bool IsJsCallback(const CefRefPtr<CefListValue>& list, int index);
            template bool IsJsCallback(const CefRefPtr<CefListValue>& list, size_t index);
            template bool IsJsCallback(const CefRefPtr<CefDictionaryValue>& list, CefString index);
        }
    }
}