Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 109 for buf4 (0.27 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go

    	SizeofBpfZbufHeader = 0x20
    )
    
    type BpfVersion struct {
    	Major uint16
    	Minor uint16
    }
    
    type BpfStat struct {
    	Recv uint32
    	Drop uint32
    }
    
    type BpfZbuf struct {
    	Bufa   *byte
    	Bufb   *byte
    	Buflen uint64
    }
    
    type BpfProgram struct {
    	Len   uint32
    	Insns *BpfInsn
    }
    
    type BpfInsn struct {
    	Code uint16
    	Jt   uint8
    	Jf   uint8
    	K    uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go

    	SizeofBpfZbufHeader = 0x20
    )
    
    type BpfVersion struct {
    	Major uint16
    	Minor uint16
    }
    
    type BpfStat struct {
    	Recv uint32
    	Drop uint32
    }
    
    type BpfZbuf struct {
    	Bufa   *byte
    	Bufb   *byte
    	Buflen uint64
    }
    
    type BpfProgram struct {
    	Len   uint32
    	Insns *BpfInsn
    }
    
    type BpfInsn struct {
    	Code uint16
    	Jt   uint8
    	Jf   uint8
    	K    uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. src/encoding/json/scanner_test.go

    			}
    
    			buf.Reset()
    			if err := Compact(&buf, []byte(tt.indent)); err != nil {
    				t.Errorf("%s: Compact error: %v", tt.Where, err)
    			} else if got := buf.String(); got != tt.compact {
    				t.Errorf("%s: Compact:\n\tgot:  %s\n\twant: %s", tt.Where, indentNewlines(got), indentNewlines(tt.compact))
    			}
    
    			buf.Reset()
    			if err := Indent(&buf, []byte(tt.indent), "", "\t"); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go

    	SizeofBpfZbufHeader = 0x20
    )
    
    type BpfVersion struct {
    	Major uint16
    	Minor uint16
    }
    
    type BpfStat struct {
    	Recv uint32
    	Drop uint32
    }
    
    type BpfZbuf struct {
    	Bufa   *byte
    	Bufb   *byte
    	Buflen uint32
    }
    
    type BpfProgram struct {
    	Len   uint32
    	Insns *BpfInsn
    }
    
    type BpfInsn struct {
    	Code uint16
    	Jt   uint8
    	Jf   uint8
    	K    uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. src/os/dir_unix.go

    				dirBufPool.Put(d.buf)
    				d.buf = nil
    				break // EOF
    			}
    		}
    
    		// Drain the buffer
    		buf := (*d.buf)[d.bufp:d.nbuf]
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			break
    		}
    		rec := buf[:reclen]
    		d.bufp += int(reclen)
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		// When building to wasip1, the host runtime might be running on Windows
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/compress/gzip/gzip_test.go

    	}
    }
    
    func TestWriterReset(t *testing.T) {
    	buf := new(bytes.Buffer)
    	buf2 := new(bytes.Buffer)
    	z := NewWriter(buf)
    	msg := []byte("hello world")
    	z.Write(msg)
    	z.Close()
    	z.Reset(buf2)
    	z.Write(msg)
    	z.Close()
    	if buf.String() != buf2.String() {
    		t.Errorf("buf2 %q != original buf of %q", buf2.String(), buf.String())
    	}
    }
    
    type limitedWriter struct {
    	N int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:10:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. 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) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. pkg/hbone/util.go

    	buf1 := bufferPoolCopy.Get().([]byte)
    	// nolint: staticcheck
    	defer bufferPoolCopy.Put(buf1)
    	bufCap := cap(buf1)
    	buf := buf1[0:bufCap:bufCap]
    
    	// For netstack: src is a gonet.Conn, doesn't implement WriterTo. Dst is a net.TcpConn - and implements ReadFrom.
    	// CopyBuffered is the actual implementation of Copy and CopyBuffer.
    	// if buf is nil, one is allocated.
    	// Duplicated from io
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/os/dir_windows.go

    type dirInfo struct {
    	mu sync.Mutex
    	// buf is a slice pointer so the slice header
    	// does not escape to the heap when returning
    	// buf to dirBufPool.
    	buf   *[]byte // buffer for directory I/O
    	bufp  int     // location of next record in buf
    	h     syscall.Handle
    	vol   uint32
    	class uint32 // type of entries in buf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil_test.go

    		t.Errorf("Error creating tmp file: %v", err)
    	}
    	defer f.Close()
    	defer os.Remove(f.Name())
    
    	r := strings.NewReader("hello world")
    
    	bufp := ODirectPoolSmall.Get().(*[]byte)
    	defer ODirectPoolSmall.Put(bufp)
    
    	written, err := CopyAligned(f, io.LimitReader(r, 5), *bufp, r.Size(), f)
    	if !errors.Is(err, io.ErrUnexpectedEOF) {
    		t.Errorf("Expected io.ErrUnexpectedEOF, but got %v", err)
    	}
    	if written != 5 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top