- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 49 for unsafeptr (0.32 sec)
-
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) -
test/fixedbugs/issue16317.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 16317: cmd/compile: internal compiler error: // unhandled OCONV INT -> TUNSAFEPTR
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:03:07 UTC 2016 - 296 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/kind_string.go
_ = x[TPTR-17] _ = x[TFUNC-18] _ = x[TSLICE-19] _ = x[TARRAY-20] _ = x[TSTRUCT-21] _ = x[TCHAN-22] _ = x[TMAP-23] _ = x[TINTER-24] _ = x[TFORW-25] _ = x[TANY-26] _ = x[TSTRING-27] _ = x[TUNSAFEPTR-28] _ = x[TIDEAL-29] _ = x[TNIL-30] _ = x[TBLANK-31] _ = x[TFUNCARGS-32] _ = x[TCHANARGS-33] _ = x[TSSA-34] _ = x[TTUPLE-35] _ = x[TRESULTS-36] _ = x[NTYPE-37] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:38 UTC 2023 - 1.6K 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)