Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for comment (0.2 sec)

  1. misc/wasm/wasm_exec.js

    							const result = Reflect.apply(m, v, args);
    							sp = this._inst.exports.getsp() >>> 0; // see comment above
    							storeValue(sp + 56, result);
    							this.mem.setUint8(sp + 64, 1);
    						} catch (err) {
    							sp = this._inst.exports.getsp() >>> 0; // see comment above
    							storeValue(sp + 56, err);
    							this.mem.setUint8(sp + 64, 0);
    						}
    					},
    
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/cmd/cgo/ast.go

    	var pieces []string
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    		// The parser has given us exactly the comment text.
    		switch c[1] {
    		case '/':
    			//-style comment (no newline at the end)
    			c = c[2:] + "\n"
    		case '*':
    			/*-style comment */
    			c = c[2 : len(c)-2]
    		}
    		pieces = append(pieces, c)
    	}
    	return strings.Join(pieces, "")
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. src/archive/zip/writer_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		if r.Comment != test.comment {
    			t.Fatalf("Reader.Comment: got %v, want %v", r.Comment, test.comment)
    		}
    	}
    }
    
    func TestWriterUTF8(t *testing.T) {
    	var utf8Tests = []struct {
    		name    string
    		comment string
    		nonUTF8 bool
    		flags   uint16
    	}{
    		{
    			name:    "hi, hello",
    			comment: "in the world",
    			flags:   0x8,
    		},
    		{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. src/archive/zip/struct.go

    	Name string
    
    	// Comment is any arbitrary user-defined string shorter than 64KiB.
    	Comment string
    
    	// NonUTF8 indicates that Name and Comment are not encoded in UTF-8.
    	//
    	// By specification, the only other encoding permitted should be CP-437,
    	// but historically many ZIP readers interpret Name and Comment as whatever
    	// the system's local character encoding happens to be.
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    package main
    
    /*
    Implementation details.
    
    Cgo provides a way for Go programs to call C code linked into the same
    address space. This comment explains the operation of cgo.
    
    Cgo reads a set of Go source files and looks for statements saying
    import "C". If the import has a doc comment, that comment is
    taken as literal C code to be used as a preamble to any C code
    generated by cgo. A typical preamble #includes necessary definitions:
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    	f.Comment = string(d[filenameLen+extraLen:])
    
    	// Determine the character encoding.
    	utf8Valid1, utf8Require1 := detectUTF8(f.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(f.Comment)
    	switch {
    	case !utf8Valid1 || !utf8Valid2:
    		// Name and Comment definitely not UTF-8.
    		f.NonUTF8 = true
    	case !utf8Require1 && !utf8Require2:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    	c_ISUID = 04000 // Set uid
    	c_ISGID = 02000 // Set gid
    	c_ISVTX = 01000 // Save text (sticky bit)
    
    	// Common Unix mode constants; these are not defined in any common tar standard.
    	// Header.FileInfo understands these, but FileInfoHeader will never produce these.
    	c_ISDIR  = 040000  // Directory
    	c_ISFIFO = 010000  // FIFO
    	c_ISREG  = 0100000 // Regular file
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. src/archive/zip/writer.go

    	return w.cw.w.(*bufio.Writer).Flush()
    }
    
    // SetComment sets the end-of-central-directory comment field.
    // It can only be called before [Writer.Close].
    func (w *Writer) SetComment(comment string) error {
    	if len(comment) > uint16max {
    		return errors.New("zip: Writer.Comment too long")
    	}
    	w.comment = comment
    	return nil
    }
    
    // Close finishes writing the zip file by writing the central directory.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. api/go1.19.txt

    pkg go/doc/comment, type DocLink struct, Recv string #51082
    pkg go/doc/comment, type DocLink struct, Text []Text #51082
    pkg go/doc/comment, type Heading struct #51082
    pkg go/doc/comment, type Heading struct, Text []Text #51082
    pkg go/doc/comment, type Italic string #51082
    pkg go/doc/comment, type Link struct #51082
    pkg go/doc/comment, type Link struct, Auto bool #51082
    pkg go/doc/comment, type Link struct, Text []Text #51082
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 17.9K bytes
    - Viewed (1)
  10. src/cmd/asm/internal/asm/parse.go

    	}
    	return p.errorCount == 0
    }
    
    // nextToken returns the next non-build-comment token from the lexer.
    // It reports misplaced //go:build comments but otherwise discards them.
    func (p *Parser) nextToken() lex.ScanToken {
    	for {
    		tok := p.lex.Next()
    		if tok == lex.BuildComment {
    			if p.sawCode {
    				p.errorf("misplaced //go:build comment")
    			}
    			continue
    		}
    		if tok != '\n' {
    			p.sawCode = true
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top