Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 939 for appendTo (0.23 sec)

  1. guava-tests/test/com/google/common/base/JoinerTest.java

        assertEquals(expected, joiner.join(parts.iterator()));
    
        StringBuilder sb1FromIterable = new StringBuilder().append('x');
        joiner.appendTo(sb1FromIterable, parts);
        assertEquals("x" + expected, sb1FromIterable.toString());
    
        StringBuilder sb1FromIterator = new StringBuilder().append('x');
        joiner.appendTo(sb1FromIterator, parts.iterator());
        assertEquals("x" + expected, sb1FromIterator.toString());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. cmd/xl-storage-format_test.go

    				fi.DataDir = mustGetUUID()
    				ids[i] = fi.VersionID
    				fi.ModTime = fi.ModTime.Add(-time.Second)
    				xl.AddVersion(fi)
    			}
    			// Encode all. This is used for benchmarking.
    			enc, err := xl.AppendTo(nil)
    			if err != nil {
    				b.Fatal(err)
    			}
    			b.Logf("Serialized size: %d bytes", len(enc))
    			rng := rand.New(rand.NewSource(0))
    			dump := make([]byte, len(enc))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. api/go1.18.txt

    pkg net/netip, method (*AddrPort) UnmarshalText([]uint8) error
    pkg net/netip, method (*Prefix) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*Prefix) UnmarshalText([]uint8) error
    pkg net/netip, method (Addr) AppendTo([]uint8) []uint8
    pkg net/netip, method (Addr) As16() [16]uint8
    pkg net/netip, method (Addr) As4() [4]uint8
    pkg net/netip, method (Addr) AsSlice() []uint8
    pkg net/netip, method (Addr) BitLen() int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_test.go

    			for i, ver := range vers {
    				newVers := make([]xlMetaV2ShallowVersion, 0, len(ver))
    				for _, v := range ver {
    					v.header.Signature = [4]byte{byte(i + 10), 0, 0, 0}
    					newVers = append(newVers, v)
    				}
    				vMod = append(vMod, newVers)
    			}
    			merged := mergeXLV2Versions(i, false, 0, vMod...)
    			if len(merged) == 0 {
    				t.Error("Did not get any results")
    				return
    			}
    			for _, ver := range merged {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-utils_test.go

    			// delete this version leading to a free version
    			xl.DeleteVersion(fi)
    			freeVersionIDs = append(freeVersionIDs, fi.TierFreeVersionID())
    			allVersionIDs = append(allVersionIDs, fi.TierFreeVersionID())
    		} else {
    			versions = append(versions, fi)
    			allVersionIDs = append(allVersionIDs, fi.VersionID)
    		}
    	}
    	buf, err := xl.AppendTo(nil)
    	if err != nil {
    		t.Fatalf("Failed to serialize xlmeta %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. internal/hash/checksum.go

    func NewChecksumString(alg, value string) *Checksum {
    	return NewChecksumWithType(NewChecksumType(alg), value)
    }
    
    // AppendTo will append the checksum to b.
    // 'parts' is used when checksum has ChecksumMultipart set.
    // ReadCheckSums reads the values back.
    func (c *Checksum) AppendTo(b []byte, parts []byte) []byte {
    	if c == nil {
    		return nil
    	}
    	var tmp [binary.MaxVarintLen32]byte
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    		}
    
    		buf, err = xlMeta.AppendTo(metaDataPoolGet())
    		defer metaDataPoolPut(buf)
    		if err != nil {
    			return err
    		}
    	} else {
    		if err = xlMeta.Load(buf); err != nil {
    			// Corrupted data, reset and write.
    			xlMeta = xlMetaV2{}
    		}
    
    		if err = xlMeta.AddVersion(fi); err != nil {
    			return err
    		}
    
    		buf, err = xlMeta.AppendTo(metaDataPoolGet())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  8. cmd/metacache-entries.go

    			// Same, discard one.
    			merged = append(merged, a[0])
    			a = a[1:]
    			b = b[1:]
    		case a[0].name < b[0].name:
    			merged = append(merged, a[0])
    			a = a[1:]
    		default:
    			merged = append(merged, b[0])
    			b = b[1:]
    		}
    		if limit > 0 && len(merged) >= limit {
    			break
    		}
    	}
    	// Append anything left.
    	if limit < 0 || len(merged) < limit {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Splitter.java

            return splittingIterator(sequence);
          }
    
          @Override
          public String toString() {
            return Joiner.on(", ")
                .appendTo(new StringBuilder().append('['), this)
                .append(']')
                .toString();
          }
        };
      }
    
      private Iterator<String> splittingIterator(CharSequence sequence) {
        return strategy.iterator(this, sequence);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  10. cmd/metacache-entries_test.go

    	}
    	inputSerialized := make([]metaCacheEntry, len(inputs))
    	for i, xl := range inputs {
    		xl.sortByModTime()
    		var err error
    		entry := metaCacheEntry{
    			name: "testobject",
    		}
    		entry.metadata, err = xl.AppendTo(nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		inputSerialized[i] = entry
    	}
    
    	tests := []struct {
    		name         string
    		m            metaCacheEntries
    		r            metadataResolutionParams
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
Back to top