Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for data_inputs (0.23 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/LittleEndianDataOutputStreamTest.java

     */
    
    package com.google.common.io;
    
    import com.google.common.base.Charsets;
    import com.google.common.primitives.Bytes;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInput;
    import java.io.DataInputStream;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * Test class for {@link LittleEndianDataOutputStream}.
     *
     * @author Keith Bottner
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

     */
    
    package com.google.common.io;
    
    import com.google.common.base.Charsets;
    import com.google.common.primitives.Bytes;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInput;
    import java.io.DataInputStream;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * Test class for {@link LittleEndianDataOutputStream}.
     *
     * @author Keith Bottner
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  7. 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)
  8. guava/src/com/google/common/io/ByteArrayDataInput.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.DataInput;
    import java.io.IOException;
    import javax.annotation.CheckForNull;
    
    /**
     * An extension of {@code DataInput} for reading from in-memory byte arrays; its methods offer
     * identical functionality but do not throw {@link IOException}.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/SmbRandomAccess.java

     */
    package jcifs;
    
    
    import java.io.DataInput;
    import java.io.DataOutput;
    
    import jcifs.smb.SmbException;
    
    
    /**
     * File access that exposes random access semantics
     * 
     * @author mbechler
     *
     */
    public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable {
    
        /**
         * Close the file
         * 
         * @throws SmbException
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.5K bytes
    - Viewed (0)
Back to top