MCPcopy
hub / github.com/gofiber/fiber / isReadOnly

Function isReadOnly

readonly.go:15–20  ·  view source on GitHub ↗
(p unsafe.Pointer)

Source from the content-addressed store, hash-verified

13var runtimeErodata byte
14
15func isReadOnly(p unsafe.Pointer) bool {
16 start := uintptr(unsafe.Pointer(&runtimeRodata)) //nolint:gosec // converting runtime symbols
17 end := uintptr(unsafe.Pointer(&runtimeErodata)) //nolint:gosec // converting runtime symbols
18 addr := uintptr(p)
19 return addr >= start && addr < end
20}

Callers 2

GetStringMethod · 0.70
GetBytesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected