Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 196 for input_stream (0.23 sec)

  1. tensorflow/cc/saved_model/fingerprinting_utils_test.cc

    absl::Status ParseTextProto(absl::string_view text_proto,
                                Message* parsed_proto) {
      TextFormat::Parser parser;
      // Attempt to parse as text.
      ArrayInputStream input_stream(text_proto.data(), text_proto.size());
      if (parser.Parse(&input_stream, parsed_proto)) {
        return absl::OkStatus();
      }
      parsed_proto->Clear();
      return absl::InvalidArgumentError(
          absl::StrCat("Could not parse text proto: ", text_proto));
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/TarFileTree.java

            });
        }
    
        private void visitImpl(FileVisitor visitor, File expandedDir, InputStream inputStream) throws IOException {
            checkFormat(inputStream);
    
            AtomicBoolean stopFlag = new AtomicBoolean();
            DetailsImpl.NoCloseTarArchiveInputStream tar = new DetailsImpl.NoCloseTarArchiveInputStream(inputStream);
            ReadableResourceInternal resource = this.resource.get();
            TarArchiveEntry entry;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:15:04 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

            def result = resource.withContent(new Action<InputStream>() {
                @Override
                void execute(InputStream input) {
                    assert input.text == "1234"
                }
            })
            result.bytesRead == 4
    
            def result2 = resource.withContent(new Action<InputStream>() {
                @Override
                void execute(InputStream inputStream) {
                    assert inputStream.read() == '1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

                assert content == [0xc4, 0xc5, 0xc6] as byte[]
    
                assert decoder.inputStream.read() == -1
                assert decoder.inputStream.read(buffer) == -1
                assert decoder.inputStream.read(buffer, 0, 1) == -1
            }
        }
    
        def "ignores close on InputStream"() {
            def inputStream = Mock(InputStream)
    
            when:
            decodeFrom(inputStream) { Decoder decoder ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/StreamByteBuffer.java

        }
    
        public static StreamByteBuffer of(InputStream inputStream) throws IOException {
            StreamByteBuffer buffer = new StreamByteBuffer(chunkSizeInDefaultRange(inputStream.available()));
            buffer.readFully(inputStream);
            return buffer;
        }
    
        public static StreamByteBuffer of(InputStream inputStream, int len) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt

                }
                throw e
            }
            return outerCloseable
        }
    
        private
        fun decryptingInputStream(inputStream: InputStream): InputStream {
            val cipher = newEncryptionSession().decryptingCipher(inputStream::read)
            return CipherInputStream(inputStream, cipher)
        }
    
        private
        fun encryptingOutputStream(outputStream: OutputStream): OutputStream {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

            final InputStream in = ResourceUtil.getResourceAsStream("extractor/program/test.hpp");
            final ExtractData extractData = tikaExtractor.getText(in, null);
            final String content = extractData.getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getTika_sh() {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ReadWriteTest.java

                    }
    
                    try ( InputStream is = f.getInputStream() ) {
                        verifyRandom(bufSize, length, is);
                    }
    
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        static void verifyRandom ( int bufSize, long length, InputStream is ) throws IOException {
            verifyRandom(bufSize, length, true, is);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  9. platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3Client.java

            }
            return clientConfiguration;
        }
    
        public void put(InputStream inputStream, Long contentLength, URI destination) {
            if (contentLength < s3ConnectionProperties.getMultipartThreshold()) {
                putSingleObject(inputStream, contentLength, destination);
            } else {
                putMultiPartObject(inputStream, contentLength, destination);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val inputStream = connection.getInputStream()
        assertThat(inputStream.read()).isEqualTo('A'.code)
        assertThat(inputStream.read()).isEqualTo('B'.code)
        assertThat(inputStream.read()).isEqualTo('C'.code)
        assertThat(inputStream.read()).isEqualTo('D'.code)
        assertThat(inputStream.read()).isEqualTo('E'.code)
        assertThat(inputStream.read()).isEqualTo('F'.code)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top