Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for desc (0.38 sec)

  1. src/cmd/cgo/internal/test/issue24161e2/main.go

    	"testing"
    )
    
    var _ C.CFStringRef
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    func f2(e C.CFErrorRef) {
    	if desc := C.CFErrorCopyDescription(e); desc != 0 {
    		fmt.Println(desc)
    	}
    }
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (1)
  2. src/cmd/cgo/internal/test/issue24161e1/main.go

    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    func f2(e C.CFErrorRef) {
    	if desc := C.CFErrorCopyDescription(e); desc != 0 {
    		fmt.Println(desc)
    	}
    }
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  3. src/archive/zip/writer_test.go

    		flags            uint16
    		crc32            uint32
    		uncompressedSize uint64
    		compressedSize   uint64
    	}{
    		{
    			name:    "small store w desc",
    			content: []byte("gophers"),
    			method:  Store,
    			flags:   0x8,
    		},
    		{
    			name:    "small deflate wo desc",
    			content: bytes.Repeat([]byte("abcdefg"), 2048),
    			method:  Deflate,
    		},
    	}
    
    	// write a zip file
    	archive := new(bytes.Buffer)
    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. misc/linkcheck/linkcheck.go

    	}
    	body := string(slurp)
    	for _, ref := range localLinks(body) {
    		if *verbose {
    			log.Printf("  links to %s", ref)
    		}
    		dest := *root + ref
    		linkSources[dest] = append(linkSources[dest], url)
    		crawl(dest, url)
    	}
    	for _, id := range pageIDs(body) {
    		if *verbose {
    			log.Printf(" url %s has #%s", url, id)
    		}
    		fragExists[urlFrag{url, id}] = true
    	}
    	return nil
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    	if dcomp == nil {
    		return nil, ErrAlgorithm
    	}
    	var rc io.ReadCloser = dcomp(r)
    	var desr io.Reader
    	if f.hasDataDescriptor() {
    		desr = io.NewSectionReader(f.zipr, f.headerOffset+bodyOffset+size, dataDescriptorLen)
    	}
    	rc = &checksumReader{
    		rc:   rc,
    		hash: crc32.NewIEEE(),
    		f:    f,
    		desr: desr,
    	}
    	return rc, nil
    }
    
    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)
  6. src/bytes/example_test.go

    	// Output: Hello world!
    }
    
    func ExampleBuffer_reader() {
    	// A Buffer can turn a string or a []byte into an io.Reader.
    	buf := bytes.NewBufferString("R29waGVycyBydWxlIQ==")
    	dec := base64.NewDecoder(base64.StdEncoding, buf)
    	io.Copy(os.Stdout, dec)
    	// Output: Gophers rule!
    }
    
    func ExampleBuffer_Bytes() {
    	buf := bytes.Buffer{}
    	buf.Write([]byte{'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  7. src/bufio/bufio_test.go

    	src := make([]byte, 10)
    	eofR := &eofReader{buf: src}
    	r := NewReader(eofR)
    
    	// Start by reading 5 of the 10 available bytes.
    	dest := make([]byte, 5)
    	read, err := r.Read(dest)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if n := len(dest); read != n {
    		t.Fatalf("read %d bytes; wanted %d bytes", read, n)
    	}
    
    	// The Reader should have buffered all the content from the io.Reader.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  8. src/archive/tar/writer_test.go

    		// the behavior is verified by researching the source code.
    		//
    		//	$ bsdtar -tvf pax-global-records.tar
    		//	----------  0 0      0           0 Dec 31  1969 file1
    		//	----------  0 0      0           0 Dec 31  1969 file2
    		//	----------  0 0      0           0 Dec 31  1969 file3
    		//	----------  0 0      0           0 May 13  2014 file4
    		//
    		// GNU tar v1.27.1 applies global headers to subsequent records,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  9. src/cmd/api/main_test.go

    		var stdPackages []string
    		importMap := make(map[string]map[string]string)
    		importDir := make(map[string]string)
    		dec := json.NewDecoder(bytes.NewReader(out))
    		for {
    			var pkg struct {
    				ImportPath, Dir string
    				ImportMap       map[string]string
    				Standard        bool
    			}
    			err := dec.Decode(&pkg)
    			if err == io.EOF {
    				break
    			}
    			if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top