- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 104 for writeInt8 (0.35 sec)
-
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
ByteArrayDataOutput out = ByteStreams.newDataOutput(); out.writeInt(0x12345678); out.writeInt(0x76543210); assertThat(out.toByteArray()).isEqualTo(bytes); } public void testNewDataOutput_sized() { ByteArrayDataOutput out = ByteStreams.newDataOutput(4); out.writeInt(0x12345678); out.writeInt(0x76543210); assertThat(out.toByteArray()).isEqualTo(bytes); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 21.9K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/PayloadSerializerObjectOutputStream.java
Class<?> targetClass = desc.forClass(); writeClass(targetClass); } @Override protected void annotateProxyClass(Class<?> cl) throws IOException { writeInt(cl.getInterfaces().length); for (Class<?> type : cl.getInterfaces()) { writeClass(type); } } private void writeClass(Class<?> targetClass) throws IOException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 00:13:09 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedDecoderTest.groovy
} InputStream encoded(String text) { def stream = new ByteArrayOutputStream() def encoder = new KryoBackedEncoder(stream) encoder.writeString(text) encoder.writeInt(12) encoder.flush() return new ByteArrayInputStream(stream.toByteArray()) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
} @Test fun writeSingleByteInt() { hpackWriter!!.writeInt(10, 31, 0) assertBytes(10) hpackWriter!!.writeInt(10, 31, 0xe0) assertBytes(0xe0 or 10) } @Test fun writeMultibyteInt() { hpackWriter!!.writeInt(1337, 31, 0) assertBytes(31, 154, 10) hpackWriter!!.writeInt(1337, 31, 0xe0) assertBytes(0xe0 or 31, 154, 10) } @Test
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 38.2K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractCollectionSerializer.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/KeyHasherTest.groovy
} static class InefficientSerializer implements Serializer<Long> { @Override void write(Encoder encoder, Long value) throws Exception { value.times { int n -> encoder.writeInt(n) } } @Override Long read(Decoder decoder) throws EOFException, Exception { throw new UnsupportedOperationException() } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/MultiChoiceAddressSerializer.java
UUID canonicalAddress = address.getCanonicalAddress(); encoder.writeLong(canonicalAddress.getMostSignificantBits()); encoder.writeLong(canonicalAddress.getLeastSignificantBits()); encoder.writeInt(address.getPort()); encoder.writeSmallInt(address.getCandidates().size()); for (InetAddress inetAddress : address.getCandidates()) { encoder.writeBinary(inetAddress.getAddress()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonRegistryContent.java
} } private void writeStopEvents(Encoder encoder, DaemonRegistryContent registry) throws Exception { List<DaemonStopEvent> stopEvents = registry.stopEvents; encoder.writeInt(stopEvents.size()); for (DaemonStopEvent stopEvent : stopEvents) { DaemonStopEvent.SERIALIZER.write(encoder, stopEvent); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 8.1K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/VisitableURLClassLoaderSpecSerializer.java
encoder.writeByte(MIXIN_CLASSLOADER_SPEC); } else { encoder.writeByte(VISITABLE_URL_CLASSLOADER_SPEC); } encoder.writeString(spec.getName()); encoder.writeInt(spec.getClasspath().size()); for (URL url : spec.getClasspath()) { encoder.writeString(url.toString()); } } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/MapSerializer.java
valueMap.put(key, value); } return valueMap; } @Override public void write(Encoder encoder, Map<U, V> value) throws Exception { encoder.writeInt(value.size()); for (Map.Entry<U, V> entry : value.entrySet()) { keySerializer.write(encoder, entry.getKey()); valueSerializer.write(encoder, entry.getValue()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 2.2K bytes - Viewed (0)