1 // +build go1.21 2 3 /* 4 * Copyright 2021 ByteDance Inc. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package encoder 20 21 import ( 22 `unsafe` 23 24 _ `github.com/chenzhuoyu/base64x` 25 26 `github.com/bytedance/sonic/internal/rt` 27 ) 28 29 //go:linkname _subr__b64encode github.com/chenzhuoyu/base64x._subr__b64encode 30 var _subr__b64encode uintptr 31 32 //go:noescape 33 //go:linkname memmove runtime.memmove 34 //goland:noinspection GoUnusedParameter 35 func memmove(to unsafe.Pointer, from unsafe.Pointer, n uintptr) 36 37 //go:linkname growslice reflect.growslice 38 //goland:noinspection GoUnusedParameter 39 func growslice(et *rt.GoType, old rt.GoSlice, cap int) rt.GoSlice 40 41 //go:linkname mapiternext runtime.mapiternext 42 //goland:noinspection GoUnusedParameter 43 func mapiternext(it *rt.GoMapIterator) 44 45 //go:linkname mapiterinit runtime.mapiterinit 46 //goland:noinspection GoUnusedParameter 47 func mapiterinit(t *rt.GoMapType, m *rt.GoMap, it *rt.GoMapIterator) 48 49 //go:linkname isValidNumber encoding/json.isValidNumber 50 //goland:noinspection GoUnusedParameter 51 func isValidNumber(s string) bool 52 53 //go:noescape 54 //go:linkname memclrNoHeapPointers runtime.memclrNoHeapPointers 55 //goland:noinspection GoUnusedParameter 56 func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr) 57 58 //go:linkname _runtime_writeBarrier runtime.writeBarrier 59 var _runtime_writeBarrier uintptr 60 61 //go:linkname gcWriteBarrier2 runtime.gcWriteBarrier2 62 func gcWriteBarrier2() 63