- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for walkStringToBytes (0.79 sec)
-
src/cmd/compile/internal/walk/convert.go
a = stackBufAddr(4, types.Types[types.TUINT8]) } // intstring(*[4]byte, rune) return mkcall("intstring", n.Type(), init, a, typecheck.Conv(n.X, types.Types[types.TINT64])) } // walkStringToBytes walks an OSTR2BYTES node. func walkStringToBytes(n *ir.ConvExpr, init *ir.Nodes) ir.Node { s := n.X if ir.IsConst(s, constant.String) { sc := ir.StringVal(s) // Allocate a [n]byte of the right size.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/expr.go
return walkBytesRunesToString(n, init) case ir.OBYTES2STRTMP: n := n.(*ir.ConvExpr) return walkBytesToStringTemp(n, init) case ir.OSTR2BYTES: n := n.(*ir.ConvExpr) return walkStringToBytes(n, init) case ir.OSTR2BYTESTMP: n := n.(*ir.ConvExpr) return walkStringToBytesTemp(n, init) case ir.OSTR2RUNES: n := n.(*ir.ConvExpr) return walkStringToRunes(n, init)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 27.6K bytes - Viewed (0)