Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,729 for bytesB (0.22 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/genericiooptions/io_options.go

    func NewTestIOStreams() (IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer) {
    	in := &bytes.Buffer{}
    	out := &bytes.Buffer{}
    	errOut := &bytes.Buffer{}
    
    	return IOStreams{
    		In:     in,
    		Out:    out,
    		ErrOut: errOut,
    	}, in, out, errOut
    }
    
    // NewTestIOStreamsDiscard returns a valid IOStreams that just discards
    func NewTestIOStreamsDiscard() IOStreams {
    	in := &bytes.Buffer{}
    	return IOStreams{
    		In:     in,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 14:05:23 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/framer/framer_test.go

    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x01}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x02}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	// read the remaining frame
    	buf = make([]byte, 2)
    	if n, err := r.Read(buf); err != nil && n != 2 && bytes.Equal(buf, []byte{0x03, 0x04}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 13:33:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/DefaultMemoryManagerTest.groovy

            def windowsMemoryInfo = new TestWindowsOsMemoryInfo()
            windowsMemoryInfo.totalMemory =  MemoryAmount.of('8g').bytes
            windowsMemoryInfo.freeMemory =  MemoryAmount.of('7g').bytes
            windowsMemoryInfo.totalVirtual =  MemoryAmount.of('12g').bytes
            windowsMemoryInfo.freeVirtual =  MemoryAmount.of('6g').bytes
            def memoryManager = newMemoryManager(windowsMemoryInfo)
    
            and:
            def holder = Mock(MemoryHolder)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 23:56:19 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  4. internal/config/cache/remote_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalCondCheck(t *testing.T) {
    	v := CondCheck{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. src/crypto/subtle/xor_ppc64x.s

    #include "textflag.h"
    
    // func xorBytes(dst, a, b *byte, n int)
    TEXT ·xorBytes(SB), NOSPLIT, $0
    	MOVD	dst+0(FP), R3	// R3 = dst
    	MOVD	a+8(FP), R4	// R4 = a
    	MOVD	b+16(FP), R5	// R5 = b
    	MOVD	n+24(FP), R6	// R6 = n
    
    	CMPU	R6, $64, CR7	// Check if n ≥ 64 bytes
    	MOVD	R0, R8		// R8 = index
    	CMPU	R6, $8, CR6	// Check if 8 ≤ n < 64 bytes
    	BLE	CR6, small	// <= 8
    	BLT	CR7, xor32	// Case for 32 ≤ n < 64 bytes
    
    	// Case for n ≥ 64 bytes
    preloop64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/events/v1/types.go

    	metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
    
    	// eventTime is the time when this Event was first observed. It is required.
    	EventTime metav1.MicroTime `json:"eventTime" protobuf:"bytes,2,opt,name=eventTime"`
    
    	// series is data about the Event series this event represents or nil if it's a singleton Event.
    	// +optional
    	Series *EventSeries `json:"series,omitempty" protobuf:"bytes,3,opt,name=series"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/internal/bytealg/compare_amd64.s

    	SHRQ	CX, AX	// move a's bit to bottom
    	ANDQ	$1, AX	// mask bit
    	LEAQ	-1(AX*2), AX // 1/0 => +1/-1
    	RET
    
    	// 0-7 bytes in common
    small:
    	LEAQ	(R8*8), CX	// bytes left -> bits left
    	NEGQ	CX		//  - bits lift (== 64 - bits left mod 64)
    	JEQ	allsame
    
    	// load bytes of a into high bytes of AX
    	CMPB	SI, $0xf8
    	JA	si_high
    	MOVQ	(SI), SI
    	JMP	si_finish
    si_high:
    	MOVQ	-8(SI)(R8*1), SI
    	SHRQ	CX, SI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:17:01 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  8. cmd/batch-handlers_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBatchJobRequest(t *testing.T) {
    	v := BatchJobRequest{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 29 18:27:23 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. cmd/storage-rest-common_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalnsScannerOptions(t *testing.T) {
    	v := nsScannerOptions{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. internal/s3select/genmessage.go

    	buf = new(bytes.Buffer)
    	binary.Write(buf, binary.BigEndian, uint32(totalLength))
    	binary.Write(buf, binary.BigEndian, uint32(headerLength))
    	prelude := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(prelude))
    	buf.Write(header)
    	message := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(message))
    
    	fmt.Println(buf.Bytes())
    }
    
    func genProgressHeader() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 4.4K bytes
    - Viewed (0)
Back to top