1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 11:07:39 +08:00

internal/t544: add //go:noescape

This commit is contained in:
wdvxdr 2023-04-09 17:37:12 +08:00
parent 91b4394d9b
commit 1ed675d5bf

View File

@ -23,25 +23,35 @@ var crc32Table = func() (tab crc32.Table) {
return
}()
//go:noescape
func tencentCrc32(tab *crc32.Table, b []byte) uint32
//go:noescape
func sub_a([]byte, []uint32)
//go:noescape
func sub_b([]byte, []uint32)
//go:noescape
func sub_c(*[16][16]byte, []byte)
//go:noescape
func sub_d(*[16]byte, []byte)
//go:noescape
func sub_e(*[256][6]byte, []byte)
//go:noescape
func sub_f(*[16]byte, *[15]uint32, *[16][16]byte) (w [44]uint32)
func sub_aa(int, *[16][2][16][16]byte, *[16]byte, []byte) byte
// transformInner see com/tencent/mobileqq/dt/model/FEBound
//
//go:noescape
func transformInner(*[0x15]byte, *[32][16]byte)
//go:noescape
func initState(*state, []byte, []byte, uint64)
func (c *state) init(key []byte, data []byte, counter uint64, nr uint8) {
@ -50,4 +60,5 @@ func (c *state) init(key []byte, data []byte, counter uint64, nr uint8) {
initState(c, key, data, counter)
}
//go:noescape
func refreshState(c *state)