Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 144 for GetSize (0.14 sec)

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

    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();
    
        /**
         * single byte that describes the version.
         * an implementation protocol should increment the value when protocol changes in an incompatible way
         */
        byte getVersion();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/TarTestFixture.groovy

        }
    
        private static String getContentForEntry(TarArchiveEntry entry, TarArchiveInputStream inputStream, String contentCharset) {
            byte[] content = IOUtils.readFully(inputStream, (int) entry.getSize())
            new String(content, contentCharset ?: Charset.defaultCharset().name())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-spi/src/main/java/org/gradle/caching/BuildCacheEntryWriter.java

        /**
         * Returns the size of the build cache entry to be written.
         *
         * @return the size of the build cache entry to be written.
         * @since 4.1
         */
        long getSize();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:09:36 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. platforms/software/resources-sftp/src/main/java/org/gradle/internal/resource/transport/sftp/SftpResourceAccessor.java

                lastModified = (long)attributes.getMTime() * 1000;
            }
            if ((attributes.getFlags() & SftpATTRS.SSH_FILEXFER_ATTR_SIZE) != 0) {
                contentLength = attributes.getSize();
            }
    
            return new DefaultExternalResourceMetaData(uri, lastModified, contentLength);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/UnauthorizedFileVisitDetails.java

            throw new UnsupportedOperationException();
        }
    
        @Override
        public long getLastModified() {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public long getSize() {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public InputStream open() {
            throw new UnsupportedOperationException();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/AbstractZipEntry.java

            return entry.isDirectory();
        }
    
        @Override
        public String getName() {
            return entry.getName();
        }
    
        @Override
        public int size() {
            return (int) entry.getSize();
        }
    
        @Override
        public byte[] getContent() throws IOException {
            return withInputStream(new IoFunction<InputStream, byte[]>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/TarCopyAction.java

                    TarArchiveEntry archiveEntry = new TarArchiveEntry(fileDetails.getRelativePath().getPathString());
                    archiveEntry.setModTime(getArchiveTimeFor(fileDetails));
                    archiveEntry.setSize(fileDetails.getSize());
                    archiveEntry.setMode(UnixStat.FILE_FLAG | fileDetails.getPermissions().toUnixNumeric());
                    tarOutStr.putArchiveEntry(archiveEntry);
                    fileDetails.copyTo(tarOutStr);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 08 14:16:53 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/json_to_flatbuffer.cc

          parser.Parse(schema.c_str()) && parser.Parse(json.c_str());
      if (!schema_parse_result) {
        std::cerr << "Parse error.\n";
        return 1;
      }
      const size_t length = parser.builder_.GetSize();
      const size_t n =
          std::fwrite(parser.builder_.GetBufferPointer(), 1, length, stdout);
      if (n != length) {
        std::cerr << "print to stdout filed.\n";
        return 1;
      }
      return 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/DefaultLockStateSerializer.java

    import java.io.DataInput;
    import java.io.DataOutput;
    import java.io.IOException;
    import java.util.Random;
    
    public class DefaultLockStateSerializer implements LockStateSerializer {
    
        @Override
        public int getSize() {
            return 16;
        }
    
        @Override
        public byte getVersion() {
            return 3;
        }
    
        @Override
        public LockState createInitialState() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. platforms/software/security/src/main/java/org/gradle/security/internal/PGPUtils.java

         * Public keys iterator is not used because it would require O(n) time to count the keys.
         */
        @SuppressWarnings("unchecked")
        public static int getSize(PGPPublicKeyRing keyring) {
            try {
                return ((List<PGPPublicKey>) KEYS_FIELD.get(keyring)).size();
            } catch (IllegalAccessException e) {
                throw new RuntimeException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top