Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 764 for vbuf (0.22 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/LineFilter.java

        }
    
        @Override
        public int read(char[] cbuf, int off, int len) throws IOException {
            for (int i = 0; i < len; i++) {
                final int c = read();
                if (c == -1) {
                    if (i == 0) {
                        return -1;
                    } else {
                        return i;
                    }
                }
                cbuf[off + i] = (char) c;
            }
            return len;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 3.6K bytes
    - Viewed (0)
  2. src/internal/syscall/windows/registry/value.go

    // Get*Value function instead.
    func (k Key) GetValue(name string, buf []byte) (n int, valtype uint32, err error) {
    	pname, err := syscall.UTF16PtrFromString(name)
    	if err != nil {
    		return 0, 0, err
    	}
    	var pbuf *byte
    	if len(buf) > 0 {
    		pbuf = (*byte)(unsafe.Pointer(&buf[0]))
    	}
    	l := uint32(len(buf))
    	err = syscall.RegQueryValueEx(syscall.Handle(k), pname, nil, &valtype, pbuf, &l)
    	if err != nil {
    		return int(l), valtype, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 11K bytes
    - Viewed (0)
  3. src/os/dir_plan9.go

    	defer d.mu.Unlock()
    
    	size := n
    	if size <= 0 {
    		size = 100
    		n = -1
    	}
    	for n != 0 {
    		// Refill the buffer if necessary.
    		if d.bufp >= d.nbuf {
    			nb, err := file.Read(d.buf[:])
    
    			// Update the buffer state before checking for errors.
    			d.bufp, d.nbuf = 0, nb
    
    			if err != nil {
    				if err == io.EOF {
    					break
    				}
    				return names, dirents, infos, &PathError{Op: "readdir", Path: file.name, Err: err}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/strconv/quote.go

    		return utf8.AppendRune(buf, r)
    	}
    	switch r {
    	case '\a':
    		buf = append(buf, `\a`...)
    	case '\b':
    		buf = append(buf, `\b`...)
    	case '\f':
    		buf = append(buf, `\f`...)
    	case '\n':
    		buf = append(buf, `\n`...)
    	case '\r':
    		buf = append(buf, `\r`...)
    	case '\t':
    		buf = append(buf, `\t`...)
    	case '\v':
    		buf = append(buf, `\v`...)
    	default:
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. 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;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. src/net/http/internal/chunked.go

    				// reading a new chunk header.
    				break
    			}
    			cr.beginChunk()
    			continue
    		}
    		if len(b) == 0 {
    			break
    		}
    		rbuf := b
    		if uint64(len(rbuf)) > cr.n {
    			rbuf = rbuf[:cr.n]
    		}
    		var n0 int
    		n0, cr.err = cr.r.Read(rbuf)
    		n += n0
    		b = b[n0:]
    		cr.n -= uint64(n0)
    		// If we're at the end of a chunk, read the next two
    		// bytes to verify they are "\r\n".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. src/syscall/route_freebsd_32bit.go

    }
    
    func (any *anyMessage) parseInterfaceMessage(b []byte) *InterfaceMessage {
    	p := (*InterfaceMessage)(unsafe.Pointer(any))
    	// FreeBSD 10 and beyond have a restructured mbuf
    	// packet header view.
    	// See https://svnweb.freebsd.org/base?view=revision&revision=254804.
    	m := (*ifMsghdr)(unsafe.Pointer(any))
    	p.Header.Data.Hwassist = uint32(m.Data.Hwassist)
    	p.Header.Data.Epoch = m.Data.Epoch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 15:46:41 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go

    //sys	Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
    
    //sys	Pause() (err error)
    
    func Fstatfs(fd int, buf *Statfs_t) (err error) {
    	_, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
    	if e != 0 {
    		err = errnoErr(e)
    	}
    	return
    }
    
    func Statfs(path string, buf *Statfs_t) (err error) {
    	p, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_ppc64x.go

    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    //sys	Stat(path string, stat *Stat_t) (err error)
    //sys	Statfs(path string, buf *Statfs_t) (err error)
    //sys	Truncate(path string, length int64) (err error)
    //sys	Ustat(dev int, ubuf *Ustat_t) (err error)
    //sys	accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
    //sys	bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/syscall/syscall_freebsd.go

    		return nil, err
    	}
    	return buf[0 : n/siz], nil
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top