- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ChanDir (0.14 sec)
-
src/cmd/compile/internal/types/type.go
NTYPE ) // ChanDir is whether a channel can send, receive, or both. type ChanDir uint8 func (c ChanDir) CanRecv() bool { return c&Crecv != 0 } func (c ChanDir) CanSend() bool { return c&Csend != 0 } const ( // types of channel // must match ../../../../reflect/type.go:/ChanDir Crecv ChanDir = 1 << 0 Csend ChanDir = 1 << 1 Cboth ChanDir = Crecv | Csend )
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/reflect/type.go
i-- } return s[i+1:] } func nameFor(t *abi.Type) string { return toRType(t).Name() } func (t *rtype) ChanDir() ChanDir { if t.Kind() != Chan { panic("reflect: ChanDir of non-chan type " + t.String()) } tt := (*abi.ChanType)(unsafe.Pointer(t)) return ChanDir(tt.Dir) } func toRType(t *abi.Type) *rtype { return (*rtype)(unsafe.Pointer(t)) } func elem(t *abi.Type) *abi.Type {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)