- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for writeBinary (0.14 sec)
-
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractEncoder.java
public void writeBytes(byte[] bytes) throws IOException { writeBytes(bytes, 0, bytes.length); } @Override public void writeBinary(byte[] bytes) throws IOException { writeBinary(bytes, 0, bytes.length); } @Override public void writeBinary(byte[] bytes, int offset, int count) throws IOException { writeSmallInt(count); writeBytes(bytes, offset, count); }
Registered: 2024-06-12 18:38 - Last Modified: 2024-04-15 16:06 - 2.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/PublicKeySerializer.java
} throw new IllegalStateException("Unexpected key in cache: " + object.getClass()); } @Override public void write(Encoder encoder, PGPPublicKey key) throws Exception { encoder.writeBinary(key.getEncoded()); }
Registered: 2024-06-12 18:38 - Last Modified: 2023-10-10 21:10 - 2K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy
} def "can encode and decode byte array"() { expect: def bytes = encode { Encoder encoder -> encoder.writeBinary([] as byte[]) encoder.writeBinary([1, 2, 3, 4] as byte[]) encoder.writeBinary([0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7] as byte[], 2, 3) } decode(bytes) { Decoder decoder -> assert decoder.readBinary() == [] as byte[]
Registered: 2024-06-12 18:38 - Last Modified: 2024-04-15 16:06 - 14.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/metadata/DefaultMetadataFileSourceCodec.java
encoder.writeString(componentIdentifier.getModule()); encoder.writeString(componentIdentifier.getVersion()); encoder.writeString(artifactId.getFileName()); encoder.writeBinary(moduleSource.getSha1().toByteArray()); } @Override public MetadataFileSource decode(Decoder decoder) throws IOException { String group = decoder.readString();
Registered: 2024-06-12 18:38 - Last Modified: 2023-10-10 21:10 - 4.4K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java
*/ void readBytes(byte[] buffer, int offset, int count) throws EOFException, IOException; /** * Reads a byte array. Can read any byte array written using {@link Encoder#writeBinary(byte[])} or {@link Encoder#writeBinary(byte[], int, int)}. * * @throws EOFException when the end of the byte stream is reached before the byte array was fully read. */ byte[] readBinary() throws EOFException, IOException;
Registered: 2024-06-12 18:38 - Last Modified: 2024-04-15 16:06 - 6.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ModuleDescriptorHashCodec.java
@Override public void encode(ModuleDescriptorHashModuleSource moduleSource, Encoder encoder) throws IOException { encoder.writeBinary(moduleSource.getDescriptorHash().toByteArray()); encoder.writeBoolean(moduleSource.isChangingModule()); } @Override public ModuleDescriptorHashModuleSource decode(Decoder decoder) throws IOException {
Registered: 2024-06-12 18:38 - Last Modified: 2023-10-10 21:10 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Encoder.java
/** * Writes the given byte array to the stream. Encodes the bytes and length information. */ void writeBinary(byte[] bytes) throws IOException; /** * Writes the given byte array to the stream. Encodes the bytes and length information. */ void writeBinary(byte[] bytes, int offset, int count) throws IOException; /**
Registered: 2024-06-12 18:38 - Last Modified: 2024-04-15 16:06 - 4.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java
} else if (snapshot instanceof HashCodeSnapshot) { HashCodeSnapshot hashSnapshot = (HashCodeSnapshot) snapshot; encoder.writeSmallInt(HASH_SNAPSHOT); encoder.writeBinary(hashSnapshot.getValue().toByteArray()); } else if (snapshot instanceof FileValueSnapshot) { FileValueSnapshot fileSnapshot = (FileValueSnapshot) snapshot; encoder.writeSmallInt(FILE_SNAPSHOT);
Registered: 2024-06-12 18:38 - Last Modified: 2024-01-11 20:22 - 14.1K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/SerializedPayloadSerializer.java
javaSerializer.write(encoder, value.getHeader()); encoder.writeSmallInt(value.getSerializedModel().size()); for (byte[] bytes : value.getSerializedModel()) { encoder.writeBinary(bytes); } } @Override public SerializedPayload read(Decoder decoder) throws Exception { Object header = javaSerializer.read(decoder); int count = decoder.readSmallInt();
Registered: 2024-06-12 18:38 - Last Modified: 2024-05-09 04:50 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/MultiChoiceAddressSerializer.java
encoder.writeInt(address.getPort()); encoder.writeSmallInt(address.getCandidates().size()); for (InetAddress inetAddress : address.getCandidates()) { encoder.writeBinary(inetAddress.getAddress()); } }
Registered: 2024-06-12 18:38 - Last Modified: 2023-09-22 08:59 - 2.1K bytes - Viewed (0)