github.com/pkujhd/goloader@v0.0.0-20240411034752-1a28096bd7bd/obj/funcinfo.1.16.go (about)

     1  //go:build go1.16 && !go1.17
     2  // +build go1.16,!go1.17
     3  
     4  package obj
     5  
     6  import (
     7  	"cmd/objfile/goobj"
     8  )
     9  
    10  func readFuncInfo(funcinfo *goobj.FuncInfo, b []byte, info *FuncInfo) {
    11  	funcinfo.Read(b)
    12  	info.Args = funcinfo.Args
    13  	info.Locals = funcinfo.Locals
    14  	info.FuncID = uint8(funcinfo.FuncID)
    15  }