Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Hevery (0.22 sec)

  1. src/cmd/cgo/doc.go

    must be placed in preambles in other files, or in C source files.
    
    # Passing pointers
    
    Go is a garbage collected language, and the garbage collector needs to
    know the location of every pointer to Go memory. Because of this,
    there are restrictions on passing pointers between Go and C.
    
    In this section the term Go pointer means a pointer to memory
    allocated by Go (such as by using the & operator or calling the
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    	// the BSD tar utility.
    	if size < 0 {
    		return false
    	}
    	var pre sparseEntry
    	for _, cur := range sp {
    		switch {
    		case cur.Offset < 0 || cur.Length < 0:
    			return false // Negative values are never okay
    		case cur.Offset > math.MaxInt64-cur.Length:
    			return false // Integer overflow with large length
    		case cur.endOffset() > size:
    			return false // Region extends beyond the actual size
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  3. src/archive/zip/writer_test.go

    				Name:   "foo",
    				Method: Deflate,
    			})
    			w.Write(bigBuf)
    		}
    		zw.Close()
    	}
    
    	b.ReportAllocs()
    	// Run once and then reset the timer.
    	// This effectively discards the very large initial flate setup cost,
    	// as well as the initialization of bigBuf.
    	runOnce(&bytes.Buffer{})
    	b.ResetTimer()
    
    	b.RunParallel(func(pb *testing.PB) {
    		var buf bytes.Buffer
    		for pb.Next() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    		}
    		if v.wantErr == nil && r.Len() == 0 {
    			t.Errorf("test %d, canary byte unexpectedly consumed", i)
    		}
    	}
    }
    
    // testNonEmptyReader wraps an io.Reader and ensures that
    // Read is never called with an empty buffer.
    type testNonEmptyReader struct{ io.Reader }
    
    func (r testNonEmptyReader) Read(b []byte) (int, error) {
    	if len(b) == 0 {
    		return 0, errors.New("unexpected empty Read call")
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    	hdr  Header     // Shallow copy of Header that is safe for mutations
    	blk  block      // Buffer to use as temporary local storage
    
    	// err is a persistent error.
    	// It is only the responsibility of every exported method of Writer to
    	// ensure that this error is sticky.
    	err error
    }
    
    // NewWriter creates a new Writer writing to w.
    func NewWriter(w io.Writer) *Writer {
    	return &Writer{w: w, curr: &regFileWriter{w, 0}}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  6. src/builtin/builtin.go

    func clear[T ~[]Type | ~map[Type]Type1](t T)
    
    // The close built-in function closes a channel, which must be either
    // bidirectional or send-only. It should be executed only by the sender,
    // never the receiver, and has the effect of shutting down the channel after
    // the last sent value is received. After the last value has been received
    // from a closed channel c, any receive from c will succeed without
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    		return
    	}
    	// General address (with a few exceptions) looks like
    	//	$sym±offset(SB)(reg)(index*scale)
    	// Exceptions are:
    	//
    	//	R1
    	//	offset
    	//	$offset
    	// Every piece is optional, so we scan left to right and what
    	// we discover tells us where we are.
    
    	// Prefix: $.
    	var prefix rune
    	switch tok := p.peek(); tok {
    	case '$', '*':
    		prefix = rune(tok)
    		p.next()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/bufio/scan.go

    // scanning lines, a [SplitFunc] can return (0, nil, nil) to signal the
    // [Scanner] to read more data into the slice and try again with a
    // longer slice starting at the same point in the input.
    //
    // The function is never called with an empty data slice unless atEOF
    // is true. If atEOF is true, however, data may be non-empty and,
    // as always, holds unprocessed text.
    type SplitFunc func(data []byte, atEOF bool) (advance int, token []byte, err error)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  9. src/archive/tar/format.go

    	// This field is special in that it is terminated by a NULL then space.
    	var f formatter
    	field := b.toV7().chksum()
    	chksum, _ := b.computeChecksum() // Possible values are 256..128776
    	f.formatOctal(field[:7], chksum) // Never fails since 128776 < 262143
    	field[7] = ' '
    }
    
    // computeChecksum computes the checksum for the header block.
    // POSIX specifies a sum of the unsigned byte values, but the Sun tar used
    // signed byte values.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    		return err
    	}
    	b := readBuf(buf[:12])
    	if b.uint32() != f.CRC32 {
    		return ErrChecksum
    	}
    
    	// The two sizes that follow here can be either 32 bits or 64 bits
    	// but the spec is not very clear on this and different
    	// interpretations has been made causing incompatibilities. We
    	// already have the sizes from the central directory so we can
    	// just ignore these.
    
    	return nil
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top