Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 311 for mbuf (0.15 sec)

  1. src/archive/zip/writer.go

    		// if modification time is the only timestamp being encoded.
    		var mbuf [9]byte // 2*SizeOf(uint16) + SizeOf(uint8) + SizeOf(uint32)
    		mt := uint32(fh.Modified.Unix())
    		eb := writeBuf(mbuf[:])
    		eb.uint16(extTimeExtraID)
    		eb.uint16(5)  // Size: SizeOf(uint8) + SizeOf(uint32)
    		eb.uint8(1)   // Flags: ModTime
    		eb.uint32(mt) // ModTime
    		fh.Extra = append(fh.Extra, mbuf[:]...)
    	}
    
    	var (
    		ow io.Writer
    		fw *fileWriter
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwks.go

    			return nil, errMalformedJWKRSAKey
    		}
    
    		// decode exponent
    		ebuf, err := base64.RawURLEncoding.DecodeString(key.E)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		nbuf, err := base64.RawURLEncoding.DecodeString(key.N)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		var n, e big.Int
    		n.SetBytes(nbuf)
    		e.SetBytes(ebuf)
    
    		return &rsa.PublicKey{
    			E: int(e.Int64()),
    			N: &n,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 23:02:35 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. cmd/os_unix.go

    	defer syscall.Close(fd)
    
    	bufp := direntPool.Get().(*[]byte)
    	defer direntPool.Put(bufp)
    	buf := *bufp
    
    	boff := 0 // starting read position in buf
    	nbuf := 0 // end valid data in buf
    
    	for {
    		if boff >= nbuf {
    			boff = 0
    			stop := globalOSMetrics.time(osMetricReadDirent)
    			nbuf, err = syscall.ReadDirent(fd, buf)
    			stop()
    			if err != nil {
    				if isSysErrNotDir(err) {
    					return nil
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LineReader.java

          Java8Compatibility.clear(cbuf);
          // The default implementation of Reader#read(CharBuffer) allocates a
          // 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();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. docs/debugging/inspect/export.go

    	hdrVer, buf, e := msgp.ReadUintBytes(buf)
    	if e != nil {
    		return 0, buf, e
    	}
    	metaVer, buf, e := msgp.ReadUintBytes(buf)
    	if e != nil {
    		return 0, buf, e
    	}
    	if hdrVer > xlHeaderVersion {
    		return 0, buf, fmt.Errorf("decodeXLHeaders: Unknown xl header version %d", metaVer)
    	}
    	if metaVer > xlMetaVersion {
    		return 0, buf, fmt.Errorf("decodeXLHeaders: Unknown xl meta version %d", metaVer)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    	if err != nil {
    		return x, buf, err
    	}
    	x.metaVer, buf, err = msgp.ReadUintBytes(buf)
    	if err != nil {
    		return x, buf, err
    	}
    	if x.headerVer > xlHeaderVersion {
    		return x, buf, fmt.Errorf("decodeXLHeaders: Unknown xl header version %d", x.headerVer)
    	}
    	if x.metaVer > xlMetaVersion {
    		return x, buf, fmt.Errorf("decodeXLHeaders: Unknown xl meta version %d", x.metaVer)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/io/CharStreams.java

          }
        }
    
        checkNotNull(from);
        checkNotNull(to);
        long total = 0;
        CharBuffer buf = createBuffer();
        while (from.read(buf) != -1) {
          Java8Compatibility.flip(buf);
          to.append(buf);
          total += buf.remaining();
          Java8Compatibility.clear(buf);
        }
        return total;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. src/bytes/bytes_test.go

    		buf := bmbuf[0:n]
    		buf[n-1] = 'x'
    		for i := 0; i < b.N; i++ {
    			j := Index(buf, buf[n-7:])
    			if j != n-7 {
    				b.Fatal("bad index", j)
    			}
    		}
    		buf[n-1] = '\x00'
    	})
    }
    
    func BenchmarkIndexEasy(b *testing.B) {
    	benchBytes(b, indexSizes, func(b *testing.B, n int) {
    		buf := bmbuf[0:n]
    		buf[n-1] = 'x'
    		buf[n-7] = 'x'
    		for i := 0; i < b.N; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    	buf, err := readSpecialFile(r)
    	if err != nil {
    		return nil, err
    	}
    	sbuf := string(buf)
    
    	// For GNU PAX sparse format 0.0 support.
    	// This function transforms the sparse format 0.0 headers into format 0.1
    	// headers since 0.0 headers were not PAX compliant.
    	var sparseMap []string
    
    	paxHdrs := make(map[string]string)
    	for len(sbuf) > 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(-1, empty.read());
      }
    
      public void testExhaust_readable() throws IOException {
        CharBuffer buf = CharBuffer.wrap(ASCII);
        assertEquals(ASCII.length(), CharStreams.exhaust(buf));
        assertEquals(0, buf.remaining());
        assertEquals(0, CharStreams.exhaust(buf));
    
        CharBuffer empty = CharBuffer.wrap("");
        assertEquals(0, CharStreams.exhaust(empty));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
Back to top