gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

stubs_go120.go (2058B)


      1 // +build go1.20
      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 assertI2I runtime.assertI2I2
     42 //goland:noinspection GoUnusedParameter
     43 func assertI2I(inter *rt.GoType, i rt.GoIface) rt.GoIface
     44 
     45 //go:linkname mapiternext runtime.mapiternext
     46 //goland:noinspection GoUnusedParameter
     47 func mapiternext(it *rt.GoMapIterator)
     48 
     49 //go:linkname mapiterinit runtime.mapiterinit
     50 //goland:noinspection GoUnusedParameter
     51 func mapiterinit(t *rt.GoMapType, m *rt.GoMap, it *rt.GoMapIterator)
     52 
     53 //go:linkname isValidNumber encoding/json.isValidNumber
     54 //goland:noinspection GoUnusedParameter
     55 func isValidNumber(s string) bool
     56 
     57 //go:noescape
     58 //go:linkname memclrNoHeapPointers runtime.memclrNoHeapPointers
     59 //goland:noinspection GoUnusedParameter
     60 func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
     61 
     62 //go:linkname _runtime_writeBarrier runtime.writeBarrier
     63 var _runtime_writeBarrier uintptr
     64 
     65 //go:linkname gcWriteBarrierAX runtime.gcWriteBarrier
     66 func gcWriteBarrierAX()