- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 51 for foobytes (0.08 sec)
-
android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java
return new AbstractStreamingHasher(4, 4) { final ByteArrayOutputStream out = new ByteArrayOutputStream(); @Override protected HashCode makeHash() { return HashCode.fromBytes(out.toByteArray()); } @Override protected void process(ByteBuffer bb) { while (bb.hasRemaining()) { out.write(bb.get()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
try { MessageDigest digest = MessageDigest.getInstance(algorithmName); assertEquals( HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input)); for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) { assertEquals( HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4.1K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
} func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) { t.Helper() gotBytes := []byte(strings.Join(actual, "\n")) goldenFile := filepath.Join("testdata", name+".golden") if ipv6 { goldenFile = filepath.Join("testdata", name+"_ipv6.golden") } testutil.CompareContent(t, gotBytes, goldenFile) } func constructTestConfig() *Config { return &Config{}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
*/ @CanIgnoreReturnValue // to skip some bytes @Override public int readUnsignedShort() throws IOException { byte b1 = readAndCheckByte(); byte b2 = readAndCheckByte(); return Ints.fromBytes((byte) 0, (byte) 0, b2, b1); } /** * Reads an integer as specified by {@link DataInputStream#readInt()}, except using little-endian * byte order. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 7.3K bytes - Viewed (0) -
cmd/bucket-replication-metrics.go
v := q.srQueueStats return InQueueMetric{ Curr: QStat{Bytes: float64(v.nowBytes), Count: float64(v.nowCount)}, Max: QStat{Bytes: float64(v.histBytes.Max()), Count: float64(v.histCounts.Max())}, Avg: QStat{Bytes: v.histBytes.Mean(), Count: v.histCounts.Mean()}, } } // InQueueStats holds queue stats for replication type InQueueStats struct { nowBytes int64 `json:"-"` nowCount int64 `json:"-"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 14.2K bytes - Viewed (0) -
cmd/fmt-gen.go
} drive := pool.Endpoints[i*setDriveCount+j] fmtBytes, err := json.Marshal(newFormat) if err != nil { //nolint:gocritic log.Fatalf("failed to marshal format.json for %s: %v", drive.String(), err) } fmtJSON := filepath.Join(drive.Host, drive.Path, minioMetaBucket, "format.json") embedFileInZip(fmtZipW, fmtJSON, fmtBytes, 0o600) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
Sink(int chunkSize) { super(chunkSize); this.chunkSize = chunkSize; this.bufferSize = chunkSize; } @Override protected HashCode makeHash() { return HashCode.fromBytes(out.toByteArray()); } @Override protected void process(ByteBuffer bb) { processCalled++; assertEquals(ByteOrder.LITTLE_ENDIAN, bb.order());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0) -
guava/src/com/google/common/hash/LittleEndianByteArray.java
* * <p>This abstraction allows us to use single-instruction load and put when available, or fall * back on the slower approach of using Longs.fromBytes(byte...). */ private interface LittleEndianBytes { long getLongLittleEndian(byte[] array, int offset); void putLongLittleEndian(byte[] array, int offset, long value); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 9.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
assertEquals(hash32, Hashing.combineOrdered(ImmutableList.of(hash32))); assertEquals( HashCode.fromBytes(new byte[] {(byte) 0x80, 0, 0, 0}), Hashing.combineOrdered(ImmutableList.of(hash32, hash32))); assertEquals( HashCode.fromBytes(new byte[] {(byte) 0xa0, 0, 0, 0}), Hashing.combineOrdered(ImmutableList.of(hash32, hash32, hash32))); assertFalse(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 09 17:40:09 UTC 2024 - 26.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
Sink(int chunkSize) { super(chunkSize); this.chunkSize = chunkSize; this.bufferSize = chunkSize; } @Override protected HashCode makeHash() { return HashCode.fromBytes(out.toByteArray()); } @Override protected void process(ByteBuffer bb) { processCalled++; assertEquals(ByteOrder.LITTLE_ENDIAN, bb.order());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0)