Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,148 for byte1 (0.04 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/stream/EncodedStream.java

                int byte1 = delegate.read();
                if (byte1 < 0) {
                    return -1;
                }
                int byte2 = delegate.read();
                if (byte2 < 0) {
                    throw new IOException("Unable to decode, expected 2 bytes but received only 1 byte. It seems the stream was not encoded correctly.");
                }
                return (hexToByte(byte1) << 4) | hexToByte(byte2);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/bpxsvc_zos.go

    	_               uint64    // 0xc0
    	St_res05        [16]uint8 // 0xc8
    	// end of version 2
    }
    
    type BpxFilestatus struct {
    	Oflag1 byte
    	Oflag2 byte
    	Oflag3 byte
    	Oflag4 byte
    }
    
    type BpxMode struct {
    	Ftype byte
    	Mode1 byte
    	Mode2 byte
    	Mode3 byte
    }
    
    // Thr attribute structure for extended attributes
    type Bpxyatt_t struct { // DSECT BPXYATT
    	Att_id           [4]uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

            def text1 = "some text"
            def bytes1 = text1.bytes
            def text2 = "more"
            def bytes2 = text2.bytes
    
            when:
            async {
                start {
                    def buffer = new byte[1024]
    
                    def nread = stream.read(buffer)
                    assert nread == bytes1.length
                    assert new String(buffer, 0, nread) == text1
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/runtime/mbitmap.go

    	// 512 bytes (8 KiB / 512 bytes * 8 bytes-per-header = 128 bytes of overhead).
    	// On 32-bit platforms, this same point is the 256 byte size class
    	// (8 KiB / 256 bytes * 8 bytes-per-header = 256 bytes of overhead).
    	//
    	// Guaranteed to be exactly at a size class boundary. The reason this value is
    	// an exclusive minimum is subtle. Suppose we're allocating a 504-byte object
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  5. src/runtime/pinner.go

    //
    //go:nosplit
    func (p *pinnerBits) ofObject(n uintptr) pinState {
    	bytep, mask := (*gcBits)(p).bitp(n * 2)
    	byteVal := atomic.Load8(bytep)
    	return pinState{bytep, byteVal, mask}
    }
    
    func (s *mspan) pinnerBitSize() uintptr {
    	return divRoundUp(uintptr(s.nelems)*2, 8)
    }
    
    // newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        byte[] encode(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            return bytes.toByteArray()
        }
    
        byte[] truncate(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            def result = bytes.toByteArray()
            if (result.length < 2) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. internal/grid/types.go

    }
    
    // Bytes provides a byte slice that can be serialized.
    type Bytes []byte
    
    // UnmarshalMsg deserializes b from the provided byte slice and returns the
    // remainder of bytes.
    func (b *Bytes) UnmarshalMsg(bytes []byte) ([]byte, error) {
    	if b == nil {
    		return bytes, errors.New("Bytes: UnmarshalMsg on nil pointer")
    	}
    	if bytes, err := msgp.ReadNilBytes(bytes); err == nil {
    		if *b != nil {
    			PutByteBuffer(*b)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. src/encoding/pem/pem.go

    	Headers map[string]string // Optional headers.
    	Bytes   []byte            // The decoded bytes of the contents. Typically a DER encoded ASN.1 structure.
    }
    
    // getLine results the first \r\n or \n delineated line from the given byte
    // array. The line does not include trailing whitespace or the trailing new
    // line bytes. The remainder of the byte array (also not including the new line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/encoding/hex/hex_test.go

    package hex
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"strings"
    	"testing"
    )
    
    type encDecTest struct {
    	enc string
    	dec []byte
    }
    
    var encDecTests = []encDecTest{
    	{"", []byte{}},
    	{"0001020304050607", []byte{0, 1, 2, 3, 4, 5, 6, 7}},
    	{"08090a0b0c0d0e0f", []byte{8, 9, 10, 11, 12, 13, 14, 15}},
    	{"f0f1f2f3f4f5f6f7", []byte{0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. 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)
Back to top