github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/base/jsonUnmarshal/replacement.go (about)

     1  package jsonUnmarshal
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model/request"
     5  	"reflect"
     6  )
     7  
     8  func Unmarshal(data []byte, v interface{}) error {
     9  
    10  	var u uintptr
    11  	value := reflect.ValueOf(data)
    12  	u = value.Pointer()
    13  	e := UnmarshalT(data, v)
    14  	request.FmtHookPool(request.PoolReq{
    15  		Args:            request.Collect(data),
    16  		Reqs:            request.Collect(v),
    17  		NeedHook:        request.Collect(u),
    18  		Source:          false,
    19  		OriginClassName: "json",
    20  		MethodName:      "Unmarshal",
    21  		ClassName:       "json",
    22  	})
    23  	return e
    24  }
    25  
    26  func UnmarshalT(data []byte, v interface{}) error {
    27  	return nil
    28  }