1
2
3
4
5
20
21 package sse
22
23 import (
24 `unsafe`
25
26 `github.com/bytedance/sonic/internal/native/types`
27 `github.com/bytedance/sonic/internal/rt`
28 )
29
30 var (
31 __i64toa func(out unsafe.Pointer, val int64) (ret int)
32
33 __u64toa func(out unsafe.Pointer, val uint64) (ret int)
34
35 __f64toa func(out unsafe.Pointer, val float64) (ret int)
36
37 __f32toa func(out unsafe.Pointer, val float32) (ret int)
38
39 __lspace func(sp unsafe.Pointer, nb int, off int) (ret int)
40
41 __quote func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn unsafe.Pointer, flags uint64) (ret int)
42
43 __html_escape func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn unsafe.Pointer) (ret int)
44
45 __unquote func(sp unsafe.Pointer, nb int, dp unsafe.Pointer, ep unsafe.Pointer, flags uint64) (ret int)
46
47 __value func(s unsafe.Pointer, n int, p int, v unsafe.Pointer, flags uint64) (ret int)
48
49 __vstring func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer, flags uint64)
50
51 __vnumber func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
52
53 __vsigned func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
54
55 __vunsigned func(s unsafe.Pointer, p unsafe.Pointer, v unsafe.Pointer)
56
57 __skip_one func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
58
59 __skip_one_fast func(s unsafe.Pointer, p unsafe.Pointer) (ret int)
60
61 __skip_array func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
62
63 __skip_object func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer, flags uint64) (ret int)
64
65 __skip_number func(s unsafe.Pointer, p unsafe.Pointer) (ret int)
66
67 __validate_one func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer) (ret int)
68
69 __get_by_path func(s unsafe.Pointer, p unsafe.Pointer, path unsafe.Pointer, m unsafe.Pointer) (ret int)
70
71 __validate_utf8 func(s unsafe.Pointer, p unsafe.Pointer, m unsafe.Pointer) (ret int)
72
73 __validate_utf8_fast func(s unsafe.Pointer) (ret int)
74
75 __fsm_exec func(m unsafe.Pointer, s unsafe.Pointer, p unsafe.Pointer, flags uint64) (ret int)
76 )
77
78
79 func i64toa(out *byte, val int64) (ret int) {
80 return __i64toa(rt.NoEscape(unsafe.Pointer(out)), val)
81 }
82
83
84 func u64toa(out *byte, val uint64) (ret int) {
85 return __u64toa(rt.NoEscape(unsafe.Pointer(out)), val)
86 }
87
88
89 func f64toa(out *byte, val float64) (ret int) {
90 return __f64toa(rt.NoEscape(unsafe.Pointer(out)), val)
91 }
92
93
94 func f32toa(out *byte, val float32) (ret int) {
95 return __f32toa(rt.NoEscape(unsafe.Pointer(out)), val)
96 }
97
98
99 func lspace(sp unsafe.Pointer, nb int, off int) (ret int) {
100 return __lspace(rt.NoEscape(sp), nb, off)
101 }
102
103
104 func quote(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn *int, flags uint64) (ret int) {
105 return __quote(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(dn)), flags)
106 }
107
108
109 func html_escape(sp unsafe.Pointer, nb int, dp unsafe.Pointer, dn *int) (ret int) {
110 return __html_escape(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(dn)))
111 }
112
113
114 func unquote(sp unsafe.Pointer, nb int, dp unsafe.Pointer, ep *int, flags uint64) (ret int) {
115 return __unquote(rt.NoEscape(unsafe.Pointer(sp)), nb, rt.NoEscape(unsafe.Pointer(dp)), rt.NoEscape(unsafe.Pointer(ep)), flags)
116 }
117
118
119 func value(s unsafe.Pointer, n int, p int, v *types.JsonState, flags uint64) (ret int) {
120 return __value(rt.NoEscape(unsafe.Pointer(s)), n, p, rt.NoEscape(unsafe.Pointer(v)), flags)
121 }
122
123
124 func vstring(s *string, p *int, v *types.JsonState, flags uint64) {
125 __vstring(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)), flags)
126 }
127
128
129 func vnumber(s *string, p *int, v *types.JsonState) {
130 __vnumber(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
131 }
132
133
134 func vsigned(s *string, p *int, v *types.JsonState) {
135 __vsigned(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
136 }
137
138
139 func vunsigned(s *string, p *int, v *types.JsonState) {
140 __vunsigned(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(v)))
141 }
142
143
144 func skip_one(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
145 return __skip_one(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
146 }
147
148
149 func skip_one_fast(s *string, p *int) (ret int) {
150 return __skip_one_fast(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)))
151 }
152
153
154 func skip_array(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
155 return __skip_array(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
156 }
157
158
159 func skip_object(s *string, p *int, m *types.StateMachine, flags uint64) (ret int) {
160 return __skip_object(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)), flags)
161 }
162
163
164 func skip_number(s *string, p *int) (ret int) {
165 return __skip_number(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)))
166 }
167
168
169 func validate_one(s *string, p *int, m *types.StateMachine) (ret int) {
170 return __validate_one(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)))
171 }
172
173
174 func get_by_path(s *string, p *int, path *[]interface{}, m *types.StateMachine) (ret int) {
175 return __get_by_path(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(path)), rt.NoEscape(unsafe.Pointer(m)))
176 }
177
178
179 func validate_utf8(s *string, p *int, m *types.StateMachine) (ret int) {
180 return __validate_utf8(rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), rt.NoEscape(unsafe.Pointer(m)))
181 }
182
183
184 func validate_utf8_fast(s *string) (ret int) {
185 return __validate_utf8_fast(rt.NoEscape(unsafe.Pointer(s)))
186 }
187
188
189 func fsm_exec(m *types.StateMachine, s *string, p *int, flags uint64) (ret int) {
190 return __fsm_exec(rt.NoEscape(unsafe.Pointer(m)), rt.NoEscape(unsafe.Pointer(s)), rt.NoEscape(unsafe.Pointer(p)), flags)
191 }
192
View as plain text