- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for Recv (0.48 sec)
-
src/cmd/compile/internal/types2/selection.go
func (s *Selection) Type() Type { switch s.kind { case MethodVal: // The type of x.f is a method with its receiver type set // to the type of x. sig := *s.obj.(*Func).typ.(*Signature) recv := *sig.recv recv.typ = s.recv sig.recv = &recv return &sig case MethodExpr: // The type of x.f is a function (without receiver) // and an additional first argument with the same type as x.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
func NewMethodType(sig *types.Type, recv *types.Type) *types.Type { nrecvs := 0 if recv != nil { nrecvs++ } // TODO(mdempsky): Move this function to types. // TODO(mdempsky): Preserve positions, names, and package from sig+recv. params := make([]*types.Field, nrecvs+sig.NumParams()) if recv != nil { params[0] = types.NewField(base.Pos, nil, recv) } for i, param := range sig.Params() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java
if ( fraglen > getMaxRecv() ) { throw new IOException("Unexpected fragment length: " + fraglen); } while ( have < fraglen ) { int r = this.handle.recv(inB, have, fraglen - have); if ( r == 0 ) { throw new IOException("Unexpected EOF"); } have += r; } return have; }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jan 26 11:51:07 UTC 2020 - 5.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_badmethod_issue57926.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 02 12:55:28 UTC 2023 - 562 bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
ch := n.Chan cond = mkcall1(chanfn("selectnbsend", 2, ch.Type()), types.Types[types.TBOOL], r.PtrInit(), ch, n.Value) case ir.OSELRECV2: n := n.(*ir.AssignListStmt) recv := n.Rhs[0].(*ir.UnaryExpr) ch := recv.X elem := n.Lhs[0] if ir.IsBlank(elem) { elem = typecheck.NodNil() } cond = typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TBOOL])
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/types2/interface.go
return &emptyInterface } // set method receivers if necessary typ := (*Checker)(nil).newInterface() for _, m := range methods { if sig := m.typ.(*Signature); sig.recv == nil { sig.recv = NewVar(m.pos, m.pkg, "", typ) } } // sort for API stability sortMethods(methods) typ.methods = methods typ.embeddeds = embeddeds typ.complete = true return typ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/operator_string.go
func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[Def-1] _ = x[Not-2] _ = x[Recv-3] _ = x[Tilde-4] _ = x[OrOr-5] _ = x[AndAnd-6] _ = x[Eql-7] _ = x[Neq-8] _ = x[Lss-9] _ = x[Leq-10] _ = x[Gtr-11] _ = x[Geq-12] _ = x[Add-13] _ = x[Sub-14] _ = x[Or-15]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 07 05:19:41 UTC 2021 - 1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleInternal.java
/** * @param buf * @param off * @param length * @param direct * @return received bytes * @throws CIFSException * @throws IOException */ int recv ( byte[] buf, int off, int length ) throws IOException; /** * @param buf * @param off * @param length * @param direct * @throws IOException */
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/tokens.go
StringLit ) type Operator uint //go:generate stringer -type Operator -linecomment tokens.go const ( _ Operator = iota // Def is the : in := Def // : Not // ! Recv // <- Tilde // ~ // precOrOr OrOr // || // precAndAnd AndAnd // && // precCmp Eql // == Neq // != Lss // < Leq // <= Gtr // > Geq // >=
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
} var interner typeInterner fmt.Fprintf(w, "var %sDecls = [...]struct { name string; tag int; typ int }{\n", name) for _, decl := range f.Decls { switch decl := decl.(type) { case *ast.FuncDecl: if decl.Recv != nil { log.Fatal("methods unsupported") } if decl.Body != nil { log.Fatal("unexpected function body") } fmt.Fprintf(w, "{%q, funcTag, %d},\n", decl.Name.Name, interner.intern(decl.Type))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0)