stubs_go116.go 1.8 KB

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