Go stdlib package — unsafe. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Add()NeutralAdd(ptr Pointer, len IntegerType) Pointer
The function Add adds len to ptr and returns the updated pointer
.Alignof()NeutralAlignof(x ArbitraryType) uintptr
Alignof takes an expression x of any type and returns the required alignment
.Offsetof()NeutralOffsetof(x ArbitraryType) uintptr
Offsetof returns the offset within the struct of the field represented by x,
.Sizeof()NeutralSizeof(x ArbitraryType) uintptr
Sizeof takes an expression x of any type and returns the size in bytes
.Slice()NeutralSlice(ptr *ArbitraryType, len IntegerType) []ArbitraryType
The function Slice returns a slice whose underlying array starts at ptr
.SliceData()NeutralSliceData(slice []ArbitraryType) *ArbitraryType
SliceData returns a pointer to the underlying array of the argument
.String()NeutralString(ptr *byte, len IntegerType) string
String returns a string value whose underlying bytes
.StringData()NeutralStringData(str string) *byte
StringData returns a pointer to the underlying bytes of str.
.ArbitraryType()Neutraltype ArbitraryType ...
ArbitraryType is here for the purposes of documentation only and is not actually
.IntegerType()Neutraltype IntegerType ...
IntegerType is here for the purposes of documentation only and is not actually
| FQN | Field | |
|---|---|---|
| unsafe | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # unsafe