- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 37 for unsafeptr (0.15 sec)
-
src/cmd/go/internal/test/test.go
// "-lostcancel", // "-methods", "-nilfunc", "-printf", // "-rangeloops", // "-shift", "-slog", "-stringintconv", // "-structtags", // "-tests", // "-unreachable", // "-unsafeptr", // "-unusedresult", } func runTest(ctx context.Context, cmd *base.Command, args []string) { pkgArgs, testArgs = testFlags(args)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/universe.go
okforlen[types.TARRAY] = true okforlen[types.TCHAN] = true okforlen[types.TMAP] = true okforlen[types.TSLICE] = true okforlen[types.TSTRING] = true okforeq[types.TPTR] = true okforeq[types.TUNSAFEPTR] = true okforeq[types.TINTER] = true okforeq[types.TCHAN] = true okforeq[types.TSTRING] = true okforeq[types.TBOOL] = true okforeq[types.TMAP] = true // nil only; refined in typecheck
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0) -
src/reflect/all_test.go
{"pointer", ValueOf(ptr), unsafe.Pointer(ptr)}, {"channel", ValueOf(ch), *(*unsafe.Pointer)(unsafe.Pointer(&ch))}, {"map", ValueOf(m), *(*unsafe.Pointer)(unsafe.Pointer(&m))}, {"unsafe.Pointer", ValueOf(unsafePtr), unsafePtr}, {"function", ValueOf(fn), **(**unsafe.Pointer)(unsafe.Pointer(&fn))}, {"slice", ValueOf(slice), unsafe.Pointer(unsafe.SliceData(slice))}, {"string", ValueOf(s), unsafe.Pointer(unsafe.StringData(s))}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/cmd/compile/internal/pkginit/initAsanGlobals.go
ir.NewIndexExpr(base.Pos, globals, ir.NewInt(base.Pos, int64(i))), lname(f)), val) init.Append(typecheck.Stmt(r)) } // globals[i].beg = uintptr(unsafe.Pointer(&n)) c = tconv(typecheck.NodAddr(n), types.Types[types.TUNSAFEPTR]) c = tconv(c, types.Types[types.TUINTPTR]) setField("beg", c, i) // Assign globals[i].size. g := n.(*ir.Name) size := g.Type().Size()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:24 UTC 2023 - 8.7K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/PathTraversalCheckerTest.groovy
setup: assumeFalse( ": is only unsafe on Windows systems", unsafePath.contains(':') && !isWindows() ) expect: isUnsafePathName(unsafePath) !isUnsafePathName(safePath) where: unsafePath | safePath "/" | "foo/" "\\" | "foo\\" "/foo" | "foo"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
} // IsPtrElem reports whether t is the element of a pointer (to t). func (t *Type) IsPtrElem() bool { return t.cache.ptr != nil } // IsUnsafePtr reports whether t is an unsafe pointer. func (t *Type) IsUnsafePtr() bool { return t.kind == TUNSAFEPTR } // IsUintptr reports whether t is a uintptr. func (t *Type) IsUintptr() bool { return t.kind == TUINTPTR }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
init = append(init, typecheck.Stmt(r)) } c = typecheck.ConvNop(c, types.Types[types.TUNSAFEPTR]) setField("c", c) if !ir.IsBlank(elem) { elem = typecheck.ConvNop(elem, types.Types[types.TUNSAFEPTR]) setField("elem", elem) } // TODO(mdempsky): There should be a cleaner way to // handle this. if base.Flag.Race {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/compile/internal/types/fmt.go
"cmd/internal/notsha256" ) // BuiltinPkg is a fake package that declares the universe block. var BuiltinPkg *Pkg // LocalPkg is the package being compiled. var LocalPkg *Pkg // UnsafePkg is package unsafe. var UnsafePkg *Pkg // BlankSym is the blank (_) symbol. var BlankSym *Sym // numImport tracks how often a package with a given name is imported.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
// hp = &a[0] hp := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TUNSAFEPTR]) ix := ir.NewIndexExpr(base.Pos, a, ir.NewInt(base.Pos, 0)) ix.SetBounded(true) addr := typecheck.ConvNop(typecheck.NodAddr(ix), types.Types[types.TUNSAFEPTR]) n.Body.Append(ir.NewAssignStmt(base.Pos, hp, addr)) // hn = len(a) * sizeof(elem(a))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types/identity.go
switch t1.kind { case TINT8, TUINT8, TINT16, TUINT16, TINT32, TUINT32, TINT64, TUINT64, TINT, TUINT, TUINTPTR, TCOMPLEX64, TCOMPLEX128, TFLOAT32, TFLOAT64, TBOOL, TSTRING, TPTR, TUNSAFEPTR: return true } // fall through to unnamed type comparison for complex types. goto cont } // Special case: we keep byte/uint8 and rune/int32 // separate for error messages. Treat them as equal.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 20:57:01 UTC 2023 - 4.6K bytes - Viewed (0)