Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 37 for cbuf (0.03 seconds)

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

          @Override
          public int read(CharBuffer cbuf) throws IOException {
            return reader.read(cbuf);
          }
        };
      }
    
      private static Reader getChunkedReader(String input, int chunk) {
        return new FilterReader(new StringReader(input)) {
          @Override
          public int read(char[] cbuf, int off, int len) throws IOException {
            return super.read(cbuf, off, min(chunk, len));
          }
        };
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/BaseEncoding.java

              checkPositionIndexes(off, off + len, buf.length);
    
              int i = off;
              for (; i < off + len; i++) {
                int b = read();
                if (b == -1) {
                  int read = i - off;
                  return read == 0 ? -1 : read;
                }
                buf[i] = (byte) b;
              }
              return i - off;
            }
    
            @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 41.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(buf);
    
        verify(hashFunction).newHasher();
        verify(hasher).putBytes(buf, 0, buf.length);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArrayAtPos() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                buf.append(',');
                buf.append("\"page_number\":");
                buf.append(currentPageNumber);
                buf.append(',');
                buf.append("\"record_count\":");
                buf.append(allRecordCount);
                buf.append(',');
                buf.append("\"record_count_relation\":");
                buf.append(escapeJson(allRecordCountRelation));
                buf.append(',');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 27 13:56:32 GMT 2026
    - 55.4K bytes
    - Click Count (1)
  5. src/test/java/org/codelibs/fess/helper/UserInfoHelperTest.java

            request.setParameter("userCode", buf.toString());
            assertNotNull(userInfoHelper.getUserCodeFromRequest(request));
            buf.append("12345ABCDE");
            request.setParameter("userCode", buf.toString());
            assertNotNull(userInfoHelper.getUserCodeFromRequest(request));
            buf.append("12345ABCDE");
            request.setParameter("userCode", buf.toString());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

            StringBuilder buf = new StringBuilder();
            Exception exception = new RuntimeException("Test error message");
    
            monitorTarget.appendException(buf, exception);
            assertTrue(buf.toString().startsWith("\"exception\":\""));
            assertTrue(buf.toString().contains("Test error message"));
            assertTrue(buf.toString().contains("RuntimeException"));
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/io/CharSourceTester.java

      }
    
      public void testOpenStream() throws IOException {
        Reader reader = source.openStream();
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertExpectedString(writer.toString());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyReadOutOfBound() throws Exception {
        HashCode expectedHash = sha512().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(sha512(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyReadOutOfBound() throws Exception {
        HashCode expectedHash = sha512().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(sha512(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

            final StringBuilder buf = new StringBuilder(100);
            buf.append("{\"@timestamp\":\"").append(valueMap.remove("time")).append('"');
            buf.append(",\"log.level\":\"INFO\"");
            buf.append(",\"ecs.version\":\"").append(ecsVersion).append('"');
            buf.append(",\"service.name\":\"").append(ecsServiceName).append('"');
            buf.append(",\"event.dataset\":\"").append(ecsEventDataset).append('"');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 13.1K bytes
    - Click Count (0)
Back to Top