Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for WriteString (0.07 sec)

  1. src/bufio/bufio_test.go

    }
    
    func (w *teststringwriter) WriteString(s string) (int, error) {
    	w.writeString += s
    	return len(s), nil
    }
    
    func (w *teststringwriter) check(t *testing.T, write, writeString string) {
    	t.Helper()
    	if w.write != write {
    		t.Errorf("write: expected %q, got %q", write, w.write)
    	}
    	if w.writeString != writeString {
    		t.Errorf("writeString: expected %q, got %q", writeString, w.writeString)
    	}
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. cmd/bucket-replication-utils_gen.go

    		return
    	}
    	for za0001, za0002 := range z.Entries {
    		err = en.WriteString(za0001)
    		if err != nil {
    			err = msgp.WrapError(err, "Entries")
    			return
    		}
    		// map header, size 3
    		// write "b"
    		err = en.Append(0x83, 0xa1, 0x62)
    		if err != nil {
    			return
    		}
    		err = en.WriteString(za0002.Bucket)
    		if err != nil {
    			err = msgp.WrapError(err, "Entries", za0001, "Bucket")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    		}
    		fmt.Fprintf(&sb, "_cgo%d", i)
    	}
    	sb.WriteString("); ")
    	if call.Deferred {
    		sb.WriteString("}")
    	}
    	sb.WriteString("}")
    	if call.Deferred {
    		sb.WriteString("()")
    	}
    	sb.WriteString("()")
    
    	return sb.String(), needsUnsafe
    }
    
    // needsPointerCheck reports whether the type t needs a pointer check.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  4. cmd/bucket-stats_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteMapHeader(uint32(len(z.Stats)))
    	if err != nil {
    		err = msgp.WrapError(err, "Stats")
    		return
    	}
    	for za0001, za0002 := range z.Stats {
    		err = en.WriteString(za0001)
    		if err != nil {
    			err = msgp.WrapError(err, "Stats")
    			return
    		}
    		if za0002 == nil {
    			err = en.WriteNil()
    			if err != nil {
    				return
    			}
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    	var str strings.Builder
    	for i, es := range hr.ESHealth {
    		str.WriteString("(Pool: ")
    		str.WriteString(strconv.Itoa(es.PoolID))
    		str.WriteString(" Set: ")
    		str.WriteString(strconv.Itoa(es.SetID))
    		str.WriteString(" Healthy: ")
    		str.WriteString(strconv.FormatBool(es.Healthy))
    		if i == 0 {
    			str.WriteString(")")
    		} else {
    			str.WriteString(") | ")
    		}
    	}
    	return str.String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_gen.go

    		if err != nil {
    			err = msgp.WrapError(err, "MetaUser")
    			return
    		}
    		for za0011, za0012 := range z.MetaUser {
    			err = en.WriteString(za0011)
    			if err != nil {
    				err = msgp.WrapError(err, "MetaUser")
    				return
    			}
    			err = en.WriteString(za0012)
    			if err != nil {
    				err = msgp.WrapError(err, "MetaUser", za0011)
    				return
    			}
    		}
    	}
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    	// Get canonical headers.
    	var buf bytes.Buffer
    	for _, k := range headers {
    		buf.WriteString(k)
    		buf.WriteByte(':')
    		switch {
    		case k == "host":
    			buf.WriteString(req.URL.Host)
    			fallthrough
    		default:
    			for idx, v := range headerMap[k] {
    				if idx > 0 {
    					buf.WriteByte(',')
    				}
    				buf.WriteString(v)
    			}
    			buf.WriteByte('\n')
    		}
    	}
    	canonicalHeaders := buf.String()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  8. cmd/data-usage-cache_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteMapHeader(uint32(len(z.Tiers)))
    	if err != nil {
    		err = msgp.WrapError(err, "Tiers")
    		return
    	}
    	for za0001, za0002 := range z.Tiers {
    		err = en.WriteString(za0001)
    		if err != nil {
    			err = msgp.WrapError(err, "Tiers")
    			return
    		}
    		// map header, size 3
    		// write "ts"
    		err = en.Append(0x83, 0xa2, 0x74, 0x73)
    		if err != nil {
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    func (x xlFlags) String() string {
    	var s strings.Builder
    	if x&xlFlagFreeVersion != 0 {
    		s.WriteString("FreeVersion")
    	}
    	if x&xlFlagUsesDataDir != 0 {
    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("UsesDD")
    	}
    	if x&xlFlagInlineData != 0 {
    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("Inline")
    	}
    	return s.String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  10. cmd/xl-storage_test.go

    	filePath := pathJoin(storage.String(), volName, fileName)
    	f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0o644)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Replace first 256 with 'a'.
    	if _, err := f.WriteString(strings.Repeat("a", 256)); err != nil {
    		t.Fatal(err)
    	}
    	f.Close()
    	if err := storage.storage.bitrotVerify(context.Background(), pathJoin(path, volName, fileName), size, algo, nil, shardSize); err == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top