Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 5,803 for maker (0.06 sec)

  1. test/strcopy.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that string([]byte(string)) makes a copy and doesn't reduce to
    // nothing. (Issue 25834)
    
    package main
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    func main() {
    	var (
    		buf      = make([]byte, 2<<10)
    		large    = string(buf)
    		sub      = large[10:12]
    		subcopy  = string([]byte(sub))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 19:10:34 UTC 2018
    - 674 bytes
    - Viewed (0)
  2. plugin/pkg/admission/deny/admission.go

    var _ admission.ValidationInterface = alwaysDeny{}
    
    // Admit makes an admission decision based on the request attributes.
    func (alwaysDeny) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	return admission.NewForbidden(a, errors.New("admission control is denying all modifications"))
    }
    
    // Validate makes an admission decision based on the request attributes.  It is NOT allowed to mutate.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  3. cmd/metacache-set.go

    }
    
    // findFirstPart will find the part with 0 being the first that corresponds to the marker in the options.
    // io.ErrUnexpectedEOF is returned if the place containing the marker hasn't been scanned yet.
    // io.EOF indicates the marker is beyond the end of the stream and does not exist.
    func (o *listPathOptions) findFirstPart(fi FileInfo) (int, error) {
    	search := o.Marker
    	if search == "" {
    		search = o.Prefix
    	}
    	if search == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  4. src/internal/bisect/bisect.go

    	buf = append(buf, '\n')
    	_, err := w.Write(buf)
    	return err
    }
    
    // Marker returns the match marker text to use on any line reporting details
    // about a match of the given ID.
    // It always returns the hexadecimal format.
    func Marker(id uint64) string {
    	return string(AppendMarker(nil, id))
    }
    
    // AppendMarker is like [Marker] but appends the marker to dst.
    func AppendMarker(dst []byte, id uint64) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. test/makeslice.go

    }
    
    // Test make in append panics for int slices since the gc compiler optimizes makes in appends.
    func testMakeInAppendInts(n uint64) {
    	type T []int
    	for _, length := range []int{0, 1} {
    		t := make(T, length)
    		shouldPanic("len out of range", func() { _ = append(t, make(T, int(n))...) })
    		shouldPanic("cap out of range", func() { _ = append(t, make(T, 0, int(n))...) })
    		shouldPanic("len out of range", func() { _ = append(t, make(T, int64(n))...) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 07 17:50:24 UTC 2020
    - 5.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue24491b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This test makes sure unsafe-uintptr arguments are not
    // kept alive longer than expected.
    
    package main
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    var done = make(chan bool)
    
    func setup() unsafe.Pointer {
    	s := "ok"
    	runtime.SetFinalizer(&s, func(p *string) { close(done) })
    	return unsafe.Pointer(&s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 13 07:54:42 UTC 2020
    - 738 bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/inline.go

    }
    
    func (x *Del) printMarkdown(buf *bytes.Buffer) {
    	buf.WriteString(x.Marker)
    	for _, c := range x.Inner {
    		c.printMarkdown(buf)
    	}
    	buf.WriteString(x.Marker)
    }
    
    func (x *Del) PrintText(buf *bytes.Buffer) {
    	for _, c := range x.Inner {
    		c.PrintText(buf)
    	}
    }
    
    type Emph struct {
    	Marker string
    	Inner  []Inline
    }
    
    func (*Emph) Inline() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. cmd/config.go

    	[]madmin.ConfigHistoryEntry, error,
    ) {
    	var configHistory []madmin.ConfigHistoryEntry
    
    	// List all kvs
    	marker := ""
    	for {
    		res, err := objAPI.ListObjects(ctx, minioMetaBucket, minioConfigHistoryPrefix, marker, "", maxObjectList)
    		if err != nil {
    			return nil, err
    		}
    		for _, obj := range res.Objects {
    			cfgEntry := madmin.ConfigHistoryEntry{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Aug 23 10:07:06 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. docs/bucket/replication/setup_replication.sh

    # create a replication policy for repluser
    # Remove "s3:GetBucketObjectLockConfiguration" if object locking is not enabled, i.e. bucket was not created with `mc mb --with-lock` option
    # Remove "s3:ReplicateDelete" if delete marker replication is not required
    cat >replpolicy.json <<EOF
    {
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Allow",
       "Action": [
        "s3:GetReplicationConfiguration",
        "s3:ListBucket",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 26 05:07:25 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. src/image/jpeg/reader_test.go

    		t.Fatalf("encoded JPEG does not contain a SOS marker (ff da) near the end: % x", s)
    	}
    	// Test that adding some random junk between the SOS marker and the
    	// EOI marker does not affect the decoding.
    	rnd := rand.New(rand.NewSource(1))
    	for i, nerr := 0, 0; i < 1000 && nerr < 10; i++ {
    		buf.Reset()
    		// Write all but the trailing "\xff\xd9" EOI marker.
    		buf.WriteString(enc[:len(enc)-2])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top