Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 304 for buf1 (0.04 sec)

  1. src/archive/zip/reader.go

    	var buf []byte
    	var directoryEndOffset int64
    	for i, bLen := range []int64{1024, 65 * 1024} {
    		if bLen > size {
    			bLen = size
    		}
    		buf = make([]byte, int(bLen))
    		if _, err := r.ReadAt(buf, size-bLen); err != nil && err != io.EOF {
    			return nil, 0, err
    		}
    		if p := findSignatureInBlock(buf); p >= 0 {
    			buf = buf[p:]
    			directoryEndOffset = size - bLen + int64(p)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/UuidUtil.java

         * @return UUIDの文字列
         */
        public static String create() {
            final StringBuilder buf = new StringBuilder(BASE.length() * 2);
            buf.append(BASE);
            final int lowTime = (int) (System.currentTimeMillis() >> 32);
            StringUtil.appendHex(buf, lowTime);
            StringUtil.appendHex(buf, RANDOM.nextInt());
            return buf.toString();
        }
    
        private static byte[] getAddress() {
            try {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

        OLD {
          @Override
          long copy(Readable from, Appendable to) throws IOException {
            CharBuffer buf = CharStreams.createBuffer();
            long total = 0;
            while (from.read(buf) != -1) {
              ((Buffer) buf).flip();
              to.append(buf);
              total += buf.remaining();
              ((Buffer) buf).clear();
            }
            return total;
          }
        },
        NEW {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:59:54 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

        OLD {
          @Override
          long copy(Readable from, Appendable to) throws IOException {
            CharBuffer buf = CharStreams.createBuffer();
            long total = 0;
            while (from.read(buf) != -1) {
              ((Buffer) buf).flip();
              to.append(buf);
              total += buf.remaining();
              ((Buffer) buf).clear();
            }
            return total;
          }
        },
        NEW {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:59:54 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. internal/bucket/replication/rule.go

    	if !r.Filter.Tag.IsEmpty() {
    		return r.Filter.Tag.String()
    	}
    	if len(r.Filter.And.Tags) != 0 {
    		var buf bytes.Buffer
    		for _, t := range r.Filter.And.Tags {
    			if buf.Len() > 0 {
    				buf.WriteString("&")
    			}
    			buf.WriteString(t.String())
    		}
    		return buf.String()
    	}
    	return ""
    }
    
    // Validate - validates the rule element
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 24 23:22:20 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/QueuesTest.java

          Future<?> possiblyIgnoredError4 = threadPool.submit(new Producer(q, 20));
    
          List<Object> buf = newArrayList();
          int elements = drain(q, buf, 100, MAX_VALUE, NANOSECONDS, interruptibly);
          assertEquals(100, elements);
          assertEquals(100, buf.size());
          assertDrained(q);
        }
      }
    
      public void testDrainTimesOut() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dtyp/ACE.java

        }
    
    
        @Override
        public int decode ( byte[] buf, int bi, int len ) {
            this.allow = buf[ bi++ ] == (byte) 0x00;
            this.flags = buf[ bi++ ] & 0xFF;
            int size = SMBUtil.readInt2(buf, bi);
            bi += 2;
            this.access = SMBUtil.readInt4(buf, bi);
            bi += 4;
            this.sid = new SID(buf, bi);
            return size;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/LineReader.java

          // temporary char[], so we call Reader#read(char[], int, int) instead.
          int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf);
          if (read == -1) {
            lineBuf.finish();
            break;
          }
          lineBuf.add(buf, 0, read);
        }
        return lines.poll();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. src/archive/tar/example_test.go

    package tar_test
    
    import (
    	"archive/tar"
    	"bytes"
    	"fmt"
    	"io"
    	"log"
    	"os"
    )
    
    func Example_minimal() {
    	// Create and add some files to the archive.
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Nov 16 16:54:08 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

                return new PathInfo(StringUtil.EMPTY, values[0]);
            }
            final StringBuilder buf = new StringBuilder();
            for (int i = 0; i < values.length - 1; i++) {
                if (buf.length() > 0) {
                    buf.append('/');
                }
                buf.append(values[i]);
            }
            return new PathInfo(buf.toString(), values[values.length - 1]);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top