- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 80 for allocated (0.07 sec)
-
android/guava/src/com/google/common/hash/AbstractStreamingHasher.java
checkArgument(bufferSize % chunkSize == 0); // TODO(user): benchmark performance difference with longer buffer // always space for a single primitive this.buffer = ByteBuffer.allocate(bufferSize + 7).order(ByteOrder.LITTLE_ENDIAN); this.bufferSize = bufferSize; this.chunkSize = chunkSize; } /** Processes the available bytes of the buffer (at most {@code chunk} bytes). */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 7.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return CharBuffer.allocate(generateInt()); } @Generates ByteBuffer generateByteBuffer() { return ByteBuffer.allocate(generateInt()); } @Generates ShortBuffer generateShortBuffer() { return ShortBuffer.allocate(generateInt()); } @Generates IntBuffer generateIntBuffer() { return IntBuffer.allocate(generateInt()); } @Generates
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 28.6K bytes - Viewed (0) -
android/guava/src/com/google/common/math/PairedStats.java
* * <p><b>Note:</b> No guarantees are made regarding stability of the representation between * versions. */ public byte[] toByteArray() { ByteBuffer buffer = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN); xStats.writeTo(buffer); yStats.writeTo(buffer); buffer.putDouble(sumOfProductsOfDeltas); return buffer.array(); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 12.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LineReader.java
@CheckForNull public String readLine() throws IOException { while (lines.peek() == null) { Java8Compatibility.clear(cbuf); // The default implementation of Reader#read(CharBuffer) allocates a // temporary char[], so we call Reader#read(char[], int, int) instead. int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf); if (read == -1) { lineBuf.finish();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/hash/Crc32cHashFunction.java
csum ^= crc; for (int i = 0; i < 4; i++) { csum = (csum >>> 8) ^ BYTE_TABLE[csum & 0xFF]; } return csum; } private static final ByteBuffer EMPTY = ByteBuffer.allocate(0); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 21.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
} public void testFromByteArray_withTooLongArrayInputThrowsIllegalArgumentException() { byte[] buffer = MANY_VALUES_PAIRED_STATS.toByteArray(); byte[] tooLongByteArray = ByteBuffer.allocate(buffer.length + 2) .order(ByteOrder.LITTLE_ENDIAN) .put(buffer) .putChar('.') .array();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(-1, ArbitraryInstances.get(InputStream.class).read()); assertEquals(-1, ArbitraryInstances.get(ByteArrayInputStream.class).read()); assertEquals(-1, ArbitraryInstances.get(Readable.class).read(CharBuffer.allocate(1))); assertEquals(-1, ArbitraryInstances.get(Reader.class).read()); assertEquals(-1, ArbitraryInstances.get(StringReader.class).read()); assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 21.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
result); return (int) result; } /** * Returns a big-endian representation of {@code value} in an 8-element byte array; equivalent to * {@code ByteBuffer.allocate(8).putLong(value).array()}. For example, the input value {@code * 0x1213141516171819L} would yield the byte array {@code {0x12, 0x13, 0x14, 0x15, 0x16, 0x17, * 0x18, 0x19}}. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 28.7K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Longs.java
result); return (int) result; } /** * Returns a big-endian representation of {@code value} in an 8-element byte array; equivalent to * {@code ByteBuffer.allocate(8).putLong(value).array()}. For example, the input value {@code * 0x1213141516171819L} would yield the byte array {@code {0x12, 0x13, 0x14, 0x15, 0x16, 0x17, * 0x18, 0x19}}. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 28.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetsTest.java
out[0] = b; System.arraycopy(array, 0, out, 1, array.length); return out; } @GwtIncompatible // java.nio.ByteBuffer private static byte[] toByteArray(int h) { return ByteBuffer.allocate(4).putInt(h).array(); } public void testNewEnumSet_empty() { EnumSet<SomeEnum> copy = newEnumSet(Collections.<SomeEnum>emptySet(), SomeEnum.class); assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 47.8K bytes - Viewed (0)