Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 304 for buf1 (0.02 sec)

  1. internal/dsync/lock-args_gen_test.go

    	v := LockArgs{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeLockArgs Msgsize() is inaccurate")
    	}
    
    	vn := LockArgs{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

                        if (Part.ATTACHMENT.equalsIgnoreCase(bodyPart.getDisposition())) {
                            appendAttachment(buf, bodyPart);
                        } else if (bodyPart.isMimeType("text/plain") || bodyPart.isMimeType("text/html")) {
                            buf.append(bodyPart.getContent().toString()).append(' ');
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            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( UnsupportedEncodingException uee ) {
            }
            i += len * 2;
            buf[i++] = (byte)'\0';
            buf[i++] = (byte)'\0';
            advance(i - index);
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

        }
    
        private StringBuilder createStringBuffer(final Object keyObj, final long time) {
            final StringBuilder buf = new StringBuilder(1000);
            buf.append("url:").append(getUrl(keyObj));
            buf.append('\t');
            buf.append("time:").append(FessFunctions.formatDate(new Date(time)));
            return buf;
        }
    
        protected String getUrl(final Object keyObj) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. 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 = Hashing.md5().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 02 16:24:50 UTC 2020
    - 5K bytes
    - Viewed (0)
  6. 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 02 16:24:50 UTC 2020
    - 5K bytes
    - Viewed (0)
  7. src/archive/zip/example_test.go

    import (
    	"archive/zip"
    	"bytes"
    	"compress/flate"
    	"fmt"
    	"io"
    	"log"
    	"os"
    )
    
    func ExampleWriter() {
    	// Create a buffer to write our archive to.
    	buf := new(bytes.Buffer)
    
    	// Create a new zip archive.
    	w := zip.NewWriter(buf)
    
    	// Add some files to the archive.
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 27 00:22:03 UTC 2016
    - 2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

            final StringBuilder buf = new StringBuilder(1000);
    
            @SuppressWarnings("unchecked")
            final List<String> roleTypeList = (List<String>) dataMap.get(fessConfig.getIndexFieldRole());
            buf.append(url);
            if (roleTypeList != null && !roleTypeList.isEmpty()) {
                buf.append(";r=");
                buf.append(roleTypeList.stream().sorted().collect(Collectors.joining(",")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. 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();
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  10. internal/s3select/genmessage.go

    	buf.WriteByte(13)
    	buf.WriteString(":message-type")
    	buf.WriteByte(7)
    	buf.Write([]byte{0, 5})
    	buf.WriteString("event")
    
    	buf.WriteByte(13)
    	buf.WriteString(":content-type")
    	buf.WriteByte(7)
    	buf.Write([]byte{0, 8})
    	buf.WriteString("text/xml")
    
    	buf.WriteByte(11)
    	buf.WriteString(":event-type")
    	buf.WriteByte(7)
    	buf.Write([]byte{0, 5})
    	buf.WriteString("Stats")
    
    	fmt.Println(buf.Bytes())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 4.4K bytes
    - Viewed (0)
Back to top