Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for GetBytes (0.19 sec)

  1. tests/fuzz/pki_fuzzer.go

    // that tests util.VerifyCertificate
    func FuzzVerifyCertificate(data []byte) int {
    	f := fuzz.NewConsumer(data)
    	privPem, err := f.GetBytes()
    	if err != nil {
    		return 0
    	}
    	certChainPem, err := f.GetBytes()
    	if err != nil {
    		return 0
    	}
    	rootCertPem, err := f.GetBytes()
    	if err != nil {
    		return 0
    	}
    	expectedFields := &util.VerifyFields{}
    	err = f.GenerateStruct(expectedFields)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:25 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertHash(expected, murmur3_32().hashBytes(string.getBytes(charset)));
        assertHash(expected, murmur3_32_fixed().hashBytes(string.getBytes(charset)));
        assertHash(expected, murmur3_32().newHasher().putBytes(string.getBytes(charset)).hash());
        assertHash(expected, murmur3_32_fixed().newHasher().putBytes(string.getBytes(charset)).hash());
      }
    
      private boolean allBmp(String string) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 08 13:56:22 UTC 2021
    - 8.6K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java

            assertEquals(resultFile, file);
            FileUtil.writeBytes(file.getAbsolutePath(), "abc".getBytes());
    
            path = "foo1/hoge.html";
            file = fileTransformer.createFile(path);
            resultFile = new File(fileTransformer.baseDir, path);
            assertEquals(resultFile, file);
            FileUtil.writeBytes(file.getAbsolutePath(), "abc".getBytes());
    
            path = "foo1/foo2/hoge.html";
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/CharsetsTest.java

      @GwtIncompatible // Non-UTF-8 Charset
      public void testWhyUsAsciiIsDangerous() {
        byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII);
        byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII);
        byte[] b3 = "????".getBytes(Charsets.US_ASCII);
        byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII);
        byte[] b5 = "スューー".getBytes(Charsets.US_ASCII);
        // Assert they are all equal (using the transitive property)
        assertTrue(Arrays.equals(b1, b2));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 04 09:41:29 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/CharsetsTest.java

      @GwtIncompatible // Non-UTF-8 Charset
      public void testWhyUsAsciiIsDangerous() {
        byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII);
        byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII);
        byte[] b3 = "????".getBytes(Charsets.US_ASCII);
        byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII);
        byte[] b5 = "スューー".getBytes(Charsets.US_ASCII);
        // Assert they are all equal (using the transitive property)
        assertTrue(Arrays.equals(b1, b2));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 04 09:41:29 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

        }
    
        public void test_name() {
            assertEquals("textTransformer", textTransformer.getName());
        }
    
        public void test_transform_text() throws Exception {
            final byte[] data = new String("xyz").getBytes();
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("file:/test.txt");
            responseData.setCharSet(Constants.UTF_8);
            responseData.setResponseBody(data);
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

            }
            File file;
            try {
                file = File.createTempFile("script", extention);
                file.deleteOnExit();
                FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes());
                return file;
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        private File createScriptTempFileStdout(final int sleep) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/Strings.java

         */
        public static byte[] getBytes ( String str, Charset encoding ) {
            if ( str == null ) {
                return new byte[0];
            }
            return str.getBytes(encoding);
        }
    
    
        /**
         * 
         * @param str
         * @return the string as bytes (UTF16-LE)
         */
        public static byte[] getUNIBytes ( String str ) {
            return getBytes(str, UNI_ENCODING);
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

            buf.append("\"memory\":{");
            buf.append("\"heap\":{");
            append(buf, "used", () -> mem.getHeapUsed().getBytes()).append(',');
            append(buf, "committed", () -> mem.getHeapCommitted().getBytes()).append(',');
            append(buf, "max", () -> mem.getHeapMax().getBytes()).append(',');
            append(buf, "percent", () -> mem.getHeapUsedPercent());
            buf.append("},");
            buf.append("\"non_heap\":{");
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

        assertTrue(sink.wasStreamClosed());
        assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
      }
    
      public void testWrite_bytes() throws IOException {
        assertArrayEquals(new byte[0], sink.getBytes());
        sink.write(bytes);
    
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
        assertArrayEquals(bytes, sink.getBytes());
      }
    
      public void testWriteFrom_inputStream() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top