Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 463 for GetBytes (0.81 sec)

  1. android/guava/src/com/google/common/io/ByteArrayDataOutput.java

      void writeChars(String s);
    
      @Override
      void writeUTF(String s);
    
      /**
       * @deprecated This method is dangerous as it discards the high byte of every character. For
       *     UTF-8, use {@code write(s.getBytes(StandardCharsets.UTF_8))}.
       */
      @Deprecated
      @Override
      void writeBytes(String s);
    
      /** Returns the contents that have been written to this instance, as a byte array. */
      byte[] toByteArray();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
        }
    
        protected boolean isTarget(final String path) {
            return pattern.matcher(path).find();
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java

        @Override
        public int encode ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
            SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex);
            dstIndex += 2;
            byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE);
            System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length);
            dstIndex += pathBytes.length;
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2; // null terminator
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/TarSlipIntegrationTest.groovy

            evilTar.withOutputStream {
                new TarOutputStream(it).withCloseable { TarOutputStream tos ->
                    TarEntry entry = new TarEntry('../../tmp/evil.sh')
                    byte[] bytes = 'evil'.getBytes('utf-8')
                    entry.size = bytes.length
                    tos.putNextEntry(entry)
                    tos.write(bytes)
                    tos.closeEntry()
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/FileUtilTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
            final byte[] bytes = readBytes(inputFile);
            assertThat(bytes, is("あいうえお".getBytes("UTF-8")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testReadUTF8() throws Exception {
            assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ"));
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/Name.java

        }
    
        int writeWireFormat( byte[] dst, int dstIndex ) {
            // write 0x20 in first byte
            dst[dstIndex] = 0x20;
    
            // write name
            try {
                byte tmp[] = name.getBytes( Name.OEM_ENCODING );
                int i;
                for( i = 0; i < tmp.length; i++ ) {
                    dst[dstIndex + ( 2 * i + 1 )] = (byte)((( tmp[i] & 0xF0 ) >> 4 ) + 0x41 );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.6K bytes
    - Viewed (0)
  7. pkg/bootstrap/fuzz_test.go

    			return
    		}
    
    		if cfg.Metadata == nil {
    			return
    		}
    		if cfg.Metadata.ProxyConfig == nil {
    			return
    		}
    
    		i := New(cfg)
    
    		// create template file
    		templateBytes, err := ff.GetBytes()
    		if err != nil {
    			return
    		}
    
    		tf, err := os.Create("templateFile")
    		if err != nil {
    			return
    		}
    		defer func() {
    			tf.Close()
    			os.Remove("templateFile")
    		}()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 12 14:51:41 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NetShareEnum.java

            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
            byte[] descr;
    
            try {
                descr = DESCR.getBytes( "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
    
            writeInt2( NET_SHARE_ENUM, dst, dstIndex );
            dstIndex += 2;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ConfigurableClassLoaderHierarchyHasher.java

            Map<ClassLoader, byte[]> hashes = new WeakHashMap<ClassLoader, byte[]>();
            for (Map.Entry<ClassLoader, String> entry : knownClassLoaders.entrySet()) {
                hashes.put(entry.getKey(), entry.getValue().getBytes(Charsets.UTF_8));
            }
            this.knownClassLoaders = hashes;
        }
    
        @Nullable
        @Override
        public HashCode getClassLoaderHash(ClassLoader classLoader) {
            Visitor visitor = new Visitor();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/TestCharSink.java

      private final TestByteSink byteSink;
    
      public TestCharSink(TestOption... options) {
        this.byteSink = new TestByteSink(options);
      }
    
      public String getString() {
        return new String(byteSink.getBytes(), UTF_8);
      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSink.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
        return byteSink.wasStreamClosed();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 2K bytes
    - Viewed (0)
Back to top