Skip to content

Commit 54cca48

Browse files
committed
add nosplit
1 parent cb58139 commit 54cca48

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

decoder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package base64
22

33
import "unsafe"
44

5+
//go:nosplit
56
func (e *Encoding) decode(dst []byte, src []byte) int {
67
inlen := uintptr(len(src))
78
if inlen == 0 || (e.pad && (inlen&3) != 0) {

encoder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package base64
22

33
import "unsafe"
44

5+
//go:nosplit
56
func (e *Encoding) encode(dst []byte, src []byte, outlen uintptr) {
67
inlen := len(src)
78
ip := (*sliceHeader)(unsafe.Pointer(&src)).data

0 commit comments

Comments
 (0)