Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 105 for bufr (0.04 sec)

  1. src/encoding/binary/varint_test.go

    	y, m := Varint(buf[0:n])
    	if x != y {
    		t.Errorf("Varint(%d): got %d", x, y)
    	}
    	if n != m {
    		t.Errorf("Varint(%d): got n = %d; want %d", x, m, n)
    	}
    
    	buf2 := []byte("prefix")
    	buf2 = AppendVarint(buf2, x)
    	if string(buf2) != "prefix"+string(buf[:n]) {
    		t.Errorf("AppendVarint(%d): got %q, want %q", x, buf2, "prefix"+string(buf[:n]))
    	}
    
    	y, err := ReadVarint(bytes.NewReader(buf))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 23:09:19 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. src/syscall/ztypes_freebsd_386.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: Fri Sep 16 01:17:28 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. src/syscall/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
    	Pad_cgo_0 [4]byte
    	Insns     *BpfInsn
    }
    
    type BpfInsn struct {
    	Code uint16
    	Jt   uint8
    	Jf   uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:39:46 UTC 2022
    - 8K bytes
    - Viewed (0)
  4. src/internal/saferio/io.go

    	}
    
    	if n < chunk {
    		buf := make([]byte, n)
    		_, err := io.ReadFull(r, buf)
    		if err != nil {
    			return nil, err
    		}
    		return buf, nil
    	}
    
    	var buf []byte
    	buf1 := make([]byte, chunk)
    	for n > 0 {
    		next := n
    		if next > chunk {
    			next = chunk
    		}
    		_, err := io.ReadFull(r, buf1[:next])
    		if err != nil {
    			if len(buf) > 0 && err == io.EOF {
    				err = io.ErrUnexpectedEOF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. tools/gen_istio_image_list.sh

               then
                  if [[ $line == *\\ ]]
                  then
                    buff=${buff%\\}$line
                  else
                    buff=${buff%\\}$line
                    break
                  fi
               fi
           fi
        done < temp.file
    
        for repo in $buff; do
           if [[ $repo == *docker.* ]]
           then
               istio_component=${repo##*docker.};
               istio_repo=istio/$istio_component;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 04:04:35 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. src/net/netip/fuzz_test.go

    func checkTextMarshalMatchesAppendTo(t *testing.T, x appendMarshaler) {
    	buf, err := x.MarshalText()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	buf2 := make([]byte, 0, len(buf))
    	buf2 = x.AppendTo(buf2)
    	if !bytes.Equal(buf, buf2) {
    		t.Fatalf("%v: MarshalText = %q, AppendTo = %q", x, buf, buf2)
    	}
    }
    
    type netipType interface {
    	encoding.BinaryMarshaler
    	encoding.TextMarshaler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:46:23 UTC 2021
    - 10.5K bytes
    - Viewed (0)
  7. src/net/http/example_test.go

    			return
    		}
    		conn, bufrw, err := hj.Hijack()
    		if err != nil {
    			http.Error(w, err.Error(), http.StatusInternalServerError)
    			return
    		}
    		// Don't forget to close the connection:
    		defer conn.Close()
    		bufrw.WriteString("Now we're speaking raw TCP. Say hi: ")
    		bufrw.Flush()
    		s, err := bufrw.ReadString('\n')
    		if err != nil {
    			log.Printf("error reading string: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 19 16:12:45 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags_test.go

    	if err != nil {
    		t.Fatalf("unexpected err: %v", err)
    	}
    
    	for name, item := range tests {
    		buff := &bytes.Buffer{}
    		err := printer.PrintObj(item.obj, buff)
    		if err != nil {
    			t.Errorf("%v: unexpected err: %v", name, err)
    			continue
    		}
    		got := buff.String()
    		if item.expect != got {
    			t.Errorf("%v: expected %v, got %v", name, item.expect, got)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 31 23:04:01 UTC 2019
    - 2K bytes
    - Viewed (0)
  9. src/compress/zlib/example_test.go

    	// Output: [120 156 202 72 205 201 201 215 81 40 207 47 202 73 225 2 4 0 0 255 255 33 231 4 147]
    }
    
    func ExampleNewReader() {
    	buff := []byte{120, 156, 202, 72, 205, 201, 201, 215, 81, 40, 207,
    		47, 202, 73, 225, 2, 4, 0, 0, 255, 255, 33, 231, 4, 147}
    	b := bytes.NewReader(buff)
    
    	r, err := zlib.NewReader(b)
    	if err != nil {
    		panic(err)
    	}
    	io.Copy(os.Stdout, r)
    	// Output: hello, world
    	r.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 784 bytes
    - Viewed (0)
  10. src/syscall/ztypes_freebsd_amd64.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
    	Pad_cgo_0 [4]byte
    	Insns     *BpfInsn
    }
    
    type BpfInsn struct {
    	Code uint16
    	Jt   uint8
    	Jf   uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 8K bytes
    - Viewed (0)
Back to top