Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,009 for bytesB (0.15 sec)

  1. src/crypto/rand/util.go

    		// the result isn't ever one bit short.
    		if b >= 2 {
    			bytes[0] |= 3 << (b - 2)
    		} else {
    			// Here b==1, because b cannot be zero.
    			bytes[0] |= 1
    			if len(bytes) > 1 {
    				bytes[1] |= 0x80
    			}
    		}
    		// Make the value odd since an even number this large certainly isn't prime.
    		bytes[len(bytes)-1] |= 1
    
    		p.SetBytes(bytes)
    		if p.ProbablyPrime(20) {
    			return p, nil
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. pkg/proxy/util/linebuffer_test.go

    }
    
    func TestLineBufferWriteBytes(t *testing.T) {
    	testCases := []struct {
    		name     string
    		bytes    []byte
    		expected string
    	}{
    		{
    			name:     "empty bytes",
    			bytes:    []byte{},
    			expected: "\n",
    		},
    		{
    			name:     "test bytes",
    			bytes:    []byte("test write bytes line"),
    			expected: "test write bytes line\n",
    		},
    	}
    
    	testBuffer := NewLineBuffer()
    	for _, testCase := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 12:38:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. cni/pkg/util/executil.go

    }
    
    func ExecuteOutput(cmd string, args ...string) (string, error) {
    	externalCommand := exec.Command(cmd, args...)
    	stdout := &bytes.Buffer{}
    	stderr := &bytes.Buffer{}
    	externalCommand.Stdout = stdout
    	externalCommand.Stderr = stderr
    
    	err := externalCommand.Run()
    
    	if err != nil || len(stderr.Bytes()) != 0 {
    		return stderr.String(), err
    	}
    
    	return strings.TrimSuffix(stdout.String(), "\n"), err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/networking/v1alpha1/types.go

    	// Namespace is the namespace of the object being referenced.
    	// +optional
    	Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
    	// Name is the name of the object being referenced.
    	// +required
    	Name string `json:"name,omitempty" protobuf:"bytes,4,opt,name=name"`
    }
    
    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:30 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataAmount.java

        public static Amount<DataAmount> bytes(BigDecimal value) {
            return Amount.valueOf(value, BYTES);
        }
    
        public static Amount<DataAmount> kbytes(BigDecimal value) {
            return Amount.valueOf(value, KILO_BYTES);
        }
    
        public static Amount<DataAmount> mbytes(BigDecimal value) {
            return Amount.valueOf(value, MEGA_BYTES);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. cmd/metrics-v3-replication.go

    	qt := qs.QStats
    	m.Set(replicationAverageQueuedBytes, float64(qt.Avg.Bytes))
    	m.Set(replicationAverageQueuedCount, float64(qt.Avg.Count))
    	m.Set(replicationMaxQueuedBytes, float64(qt.Max.Bytes))
    	m.Set(replicationMaxQueuedCount, float64(qt.Max.Count))
    	m.Set(replicationLastMinuteQueuedBytes, float64(qt.Curr.Bytes))
    	m.Set(replicationLastMinuteQueuedCount, float64(qt.Curr.Count))
    
    	qa := qs.ActiveWorkers
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/encoding/hex/hex_test.go

    		}
    
    		dumper.Close()
    		if !bytes.Equal(out.Bytes(), expectedHexDump) {
    			t.Errorf("stride: %d failed. got:\n%s\nwant:\n%s", stride, out.Bytes(), expectedHexDump)
    		}
    	}
    }
    
    func TestDumper_doubleclose(t *testing.T) {
    	var out strings.Builder
    	dumper := Dumper(&out)
    
    	dumper.Write([]byte(`gopher`))
    	dumper.Close()
    	dumper.Close()
    	dumper.Write([]byte(`gopher`))
    	dumper.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      byte readByte();
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      int readUnsignedByte();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      short readShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readUnsignedShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. pkg/http/get.go

    // limitations under the License.
    
    package http
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"net/http"
    	"time"
    )
    
    const requestTimeout = time.Second * 1 // Default timeout.
    
    func DoHTTPGetWithTimeout(requestURL string, t time.Duration) (*bytes.Buffer, error) {
    	return request("GET", requestURL, t, nil)
    }
    
    func DoHTTPGet(requestURL string) (*bytes.Buffer, error) {
    	return DoHTTPGetWithTimeout(requestURL, requestTimeout)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 03:52:10 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. pilot/pkg/keycertbundle/watcher_test.go

    		keyCertBundle := watcher.GetKeyCertBundle()
    		if !bytes.Equal(keyCertBundle.KeyPem, key) || !bytes.Equal(keyCertBundle.CertPem, cert) ||
    			!bytes.Equal(keyCertBundle.CABundle, ca) {
    			t.Errorf("got wrong keyCertBundle %v", keyCertBundle)
    		}
    	default:
    		t.Errorf("watcher1 watched non keyCertBundle")
    	}
    	select {
    	case <-watch2:
    		keyCertBundle := watcher.GetKeyCertBundle()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top