Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 279 for metabytes (1.61 sec)

  1. guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testToByteArray() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(UTF_8));
      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. cmd/generic-handlers_test.go

    		{name: "long", input: strings.Repeat("a/", 2000), want: false},
    		{name: "long-fail", input: strings.Repeat("a/", 2000) + "../..", want: true},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(b *testing.B) {
    			b.SetBytes(int64(len(tt.input)))
    			b.ReportAllocs()
    			for b.Loop() {
    				if got := hasBadPathComponent(tt.input); got != tt.want {
    					t.Fatalf("hasBadPathComponent() = %v, want %v", got, tt.want)
    				}
    			}
    		})
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          random.nextBytes(bytes);
          String s = new String(bytes, UTF_16LE); // so all random strings are valid
          assertEquals(
              new Sink(4).putUnencodedChars(s).hash(),
              new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putString(s, UTF_16LE).hash());
        }
      }
    
      public void testFloat() {
        Sink sink = new Sink(4);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

        private Configuration mockConfig;
    
        private TransCallNamedPipe transCallNamedPipe;
        private static final String TEST_PIPE_NAME = "\\\\PIPE\\\\testpipe";
        private static final byte[] TEST_DATA = "Test pipe data".getBytes();
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Test constructor initializes fields correctly")
        void testConstructorInitialization() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            super.setUp();
            final File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "fess.version=98.76.5".getBytes());
            final File desginJspRootFile = File.createTempFile("jsp", "");
            desginJspRootFile.delete();
            desginJspRootFile.deleteOnExit();
            systemHelper = new SystemHelper() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SecureKeyManager.java

            // This is a placeholder - real implementation should use proper KDF
            byte[] derived = new byte[length];
    
            // Combine inputs
            byte[] labelBytes = label.getBytes(java.nio.charset.StandardCharsets.UTF_8);
            byte[] input = new byte[baseKey.length + labelBytes.length + (context != null ? context.length : 0)];
    
            int pos = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

         */
        protected static String encodeId(final String objectName) {
            if (objectName == null) {
                return StringUtil.EMPTY;
            }
            return new String(Base64.getUrlEncoder().encode(objectName.getBytes(Constants.UTF_8_CHARSET)), Constants.UTF_8_CHARSET);
        }
    
        /**
         * Decodes a base64 encoded ID back to the original object name.
         *
         * @param id the encoded ID to decode
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

                        final String converted = URLEncoder.encode(target, Constants.UTF_8);
                        if (target.equals(converted)) {
                            encodedBuf.append(Base64.getUrlEncoder().encodeToString(target.getBytes(Constants.CHARSET_UTF_8)));
                        } else {
                            encodedBuf.append(converted);
                        }
                    } catch (final UnsupportedEncodingException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            SMBUtil.writeInt2(24, buffer, 10); // DataOffset
            SMBUtil.writeInt4(32, buffer, 12); // DataLength (standard lease only)
    
            // Write name
            System.arraycopy("DLse".getBytes(), 0, buffer, 16, 4);
    
            // Write lease key
            Smb2LeaseKey key = new Smb2LeaseKey();
            key.encode(buffer, 24);
    
            // Write lease state
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

                buf.enc_ndr_long(0); // NULL pointer
            } else {
                buf.enc_ndr_long(1); // Non-NULL pointer
    
                // Convert to UTF-16LE (wide string)
                byte[] wideBytes = str.getBytes(StandardCharsets.UTF_16LE);
                int charCount = str.length();
    
                // NDR string structure: MaximumCount, Offset, ActualCount, then data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top