Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for data_inputs (0.14 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockInfoSerializer.java

            dataOutput.writeUTF(trimIfNecessary(lockInfo.operation));
        }
    
        public LockInfo read(DataInput dataInput) throws IOException {
            LockInfo out = new LockInfo();
            out.port = dataInput.readInt();
            out.lockId = dataInput.readLong();
            out.pid = dataInput.readUTF();
            out.operation = dataInput.readUTF();
            return out;
        }
    
        private String trimIfNecessary(String inputString) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/locklistener/FileLockPacketPayload.java

            DataInputStream dataInput = new DataInputStream(new ByteArrayInputStream(bytes));
            byte version = dataInput.readByte();
            if (version != PROTOCOL_VERSION) {
                throw new IllegalArgumentException(String.format("Unexpected protocol version %s received in lock contention notification message", version));
            }
            long lockId = dataInput.readLong();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/DefaultLockStateSerializer.java

            dataOutput.writeLong(state.creationNumber);
            dataOutput.writeLong(state.sequenceNumber);
        }
    
        @Override
        public LockState read(DataInput dataInput) throws IOException {
            long creationNumber = dataInput.readLong();
            long sequenceNumber = dataInput.readLong();
            return new SequenceNumberLockState(creationNumber, sequenceNumber, sequenceNumber);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockStateSerializer.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.cache.internal.filelock;
    
    import java.io.DataInput;
    import java.io.DataOutput;
    import java.io.IOException;
    
    public interface LockStateSerializer {
    
        /**
         * size (bytes) of the data of this protocol.
         */
        int getSize();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

      }
    
      public void testReadFully() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/Version1LockStateSerializer.java

            DirtyFlagLockState state = (DirtyFlagLockState) lockState;
            dataOutput.writeBoolean(!state.dirty);
        }
    
        @Override
        public LockState read(DataInput dataInput) throws IOException {
            return new DirtyFlagLockState(!dataInput.readBoolean());
        }
    
        private static class DirtyFlagLockState implements LockState {
            private final boolean dirty;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockStateAccess.java

                    readPos += nread;
                }
    
                ByteArrayInputStream inputStream = new ByteArrayInputStream(buffer, 0, readPos);
                DataInputStream dataInput = new DataInputStream(inputStream);
    
                byte protocolVersion = dataInput.readByte();
                if (protocolVersion != protocol.getVersion()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top