package
2.4.2
Repository: https://github.com/datadog/go-libddwaf.git
Documentation: pkg.go.dev

# Functions

Cast is used to centralize unsafe use C of allocated pointer.
No description provided by the author
CastWithOffset is the same as cast but adding an offset to the pointer by a multiple of the size of the type pointed.
Cstring converts a go string to *byte that can be passed to C code.
Gostring copies a char* to a Go string.
No description provided by the author
KeepAlive is a copy of runtime.KeepAlive keepAlive has 2 usages: - It forces the deallocation of the memory to take place later than expected (just like runtime.KeepAlive) - It forces the given argument x to be escaped on the heap by saving it into a global value (Go doesn't provide a standard way to do it as of today) It is implemented so that the compiler cannot optimize it.
NativeStringUnwrap cast a native string type into it's runtime value.
NativeToUintptr is a helper used by populate WafObject values with Go values.
PtrToUintptr is a helper to centralize of usage of unsafe.Pointer do not use this function to cast interfaces.
No description provided by the author
UintToNative is a helper used retrieve Go values from an uintptr encoded value from a WafObject.

# Interfaces

No description provided by the author