Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 328 for bufs (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyReadOutOfBound() throws Exception {
        HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 5K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/MIEName.java

            if (buf.length < i + NAME_LEN_SIZE) {
                throw new IllegalArgumentException();
            }
            len = 0xff000000 & buf[i++] << 24;
            len |= 0x00ff0000 & buf[i++] << 16;
            len |= 0x0000ff00 & buf[i++] << 8;
            len |= 0x000000ff & buf[i++];
    
            // NAME
            if (buf.length < i + len) {
                throw new IllegalArgumentException();
            }
            this.name = new String(buf, i, len);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  3. src/bufio/scan_test.go

    func genLine(buf *bytes.Buffer, lineNum, n int, addNewline bool) {
    	buf.Reset()
    	doCR := lineNum%5 == 0
    	if doCR {
    		n--
    	}
    	for i := 0; i < n-1; i++ { // Stop early for \n.
    		c := 'a' + byte(lineNum+i)
    		if c == '\n' || c == '\r' { // Don't confuse us.
    			c = 'N'
    		}
    		buf.WriteByte(c)
    	}
    	if addNewline {
    		if doCR {
    			buf.WriteByte('\r')
    		}
    		buf.WriteByte('\n')
    	}
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            Encdec.enc_uint32le(len + 1, buf, i);
            i += 4;
            Encdec.enc_uint32le(0, buf, i);
            i += 4;
            Encdec.enc_uint32le(len + 1, buf, i);
            i += 4;
            try {
                System.arraycopy(s.getBytes("UTF-16LE"), 0, buf, i, len * 2);
            } catch (final UnsupportedEncodingException uee) {}
            i += len * 2;
            buf[i] = (byte) '\0';
            i++;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/api/BaseApiManager.java

         */
        protected void write(final String text, final String contentType, final String encoding) {
            final StringBuilder buf = new StringBuilder(50);
            if (contentType == null) {
                buf.append("text/plain");
            } else {
                buf.append(contentType);
            }
            buf.append("; charset=");
            final String enc;
            if (encoding == null) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

            StringBuilder buff = new StringBuilder();
            if (md.getExecutePhase() != null && !md.getExecutePhase().isEmpty()) {
                // forked phase
                if (md.getExecuteLifecycle() != null && !md.getExecuteLifecycle().isEmpty()) {
                    buff.append('[');
                    buff.append(md.getExecuteLifecycle());
                    buff.append(']');
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Dec 13 15:40:45 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

                throw new ExtractException(e);
            }
            return buf.toString();
        }
    
        /**
         * Appends attachment content to the buffer if it can be extracted.
         *
         * @param buf the buffer to append content to
         * @param bodyPart the body part containing the attachment
         */
        protected void appendAttachment(final StringBuilder buf, final BodyPart bodyPart) {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/job/SuggestJob.java

            buf.append("WEB-INF");
            buf.append(File.separator);
            buf.append("env");
            buf.append(File.separator);
            buf.append(getExecuteType());
            buf.append(File.separator);
            buf.append("resources");
            buf.append(cpSeparator);
            // WEB-INF/classes
            buf.append("WEB-INF");
            buf.append(File.separator);
            buf.append("classes");
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

                buf.append(v);
                if (!v.endsWith("$")) {
                    buf.append(".*");
                }
            } else if (v.endsWith("$")) {
                buf.append(".*");
                buf.append(v);
            } else if (v.endsWith("/\\E")) {
                buf.append(".*");
                buf.append(v);
                buf.append(".*");
            } else {
                buf.append(v);
            }
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiItem.java

        public String toLineString() {
            final StringBuilder buf = new StringBuilder(100);
            if (isUpdated()) {
                buf.append(quoteEscape(newToken));
                buf.append(',');
                buf.append(quoteEscape(newSegmentation));
                buf.append(',');
                buf.append(quoteEscape(newReading));
                buf.append(',');
                buf.append(quoteEscape(newPos));
            } else {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.3K bytes
    - Click Count (0)
Back to Top