log.Println("warning: pre-allocated parameter name not match parameter name, pre-allocated parameter name will be freed.",n,p.Name)
C.free(unsafe.Pointer(param.name))
}else{
nameReady=true
}
}
memReady:=false
ifreuse!=0&¶m.content!=nullPtr{
ifint(param.content_len)<len(p.Content){
memReady=true
}else{
log.Println("warning: pre-allocated content len is smaller than parameter content len, pre-allocated content will be freed.",param.content_len,len(p.Content))
C.free(param.content)
ifparam.content!=nullPtr{
ifint(param.content_len)==len(p.Content){
contentAllocated=true
}else{
log.Println("warning: pre-allocated content len does not match parameter content len, pre-allocated content will be freed.",param.content_len,len(p.Content))