Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 7,298 for byte1 (0.06 sec)

  1. 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)
  2. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

        private static void longToBytes(long value, byte[] bytes, int offset) {
            bytes[offset] = (byte) (value & 0xFF);
            bytes[offset + 1] = (byte) ((value >>> 8) & 0xFF);
            bytes[offset + 2] = (byte) ((value >>> 16) & 0xFF);
            bytes[offset + 3] = (byte) ((value >>> 24) & 0xFF);
            bytes[offset + 4] = (byte) ((value >>> 32) & 0xFF);
            bytes[offset + 5] = (byte) ((value >>> 40) & 0xFF);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 14 19:25:07 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. src/net/http/fcgi/fcgi_test.go

    func nameValuePair11(nameData, valueData string) []byte {
    	return bytes.Join(
    		[][]byte{
    			{byte(len(nameData)), byte(len(valueData))},
    			[]byte(nameData),
    			[]byte(valueData),
    		},
    		nil,
    	)
    }
    
    func makeRecord(
    	recordType recType,
    	requestId uint16,
    	contentData []byte,
    ) []byte {
    	requestIdB1 := byte(requestId >> 8)
    	requestIdB0 := byte(requestId)
    
    	contentLength := len(contentData)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. test/fixedbugs/issue7921.go

    	var b bytes.Buffer
    	b.Grow(64) // ERROR "bufferNoEscape4 ignoring self-assignment in bytes.b.buf = bytes.b.buf\[:bytes.m\]$" "inlining call to bytes.\(\*Buffer\).Grow$" `".+" escapes to heap`
    	useBuffer(&b)
    	return b.Bytes() // ERROR "inlining call to bytes.\(\*Buffer\).Bytes$"
    }
    
    func bufferNoEscape5() { // ERROR "can inline bufferNoEscape5$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/HashCode.java

        public int bits() {
          return 64;
        }
    
        @Override
        public byte[] asBytes() {
          return new byte[] {
            (byte) hash,
            (byte) (hash >> 8),
            (byte) (hash >> 16),
            (byte) (hash >> 24),
            (byte) (hash >> 32),
            (byte) (hash >> 40),
            (byte) (hash >> 48),
            (byte) (hash >> 56)
          };
        }
    
        @Override
        public int asInt() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/HashCode.java

        public int bits() {
          return 64;
        }
    
        @Override
        public byte[] asBytes() {
          return new byte[] {
            (byte) hash,
            (byte) (hash >> 8),
            (byte) (hash >> 16),
            (byte) (hash >> 24),
            (byte) (hash >> 32),
            (byte) (hash >> 40),
            (byte) (hash >> 48),
            (byte) (hash >> 56)
          };
        }
    
        @Override
        public int asInt() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 12.6K 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/strconv/strconv_test.go

    	Uint64     uint64
    	Float64    float64
    	Complex128 complex128
    	Error      error
    	Bytes      []byte
    }
    
    func TestAllocationsFromBytes(t *testing.T) {
    	const runsPerTest = 100
    	bytes := struct{ Bool, Number, String, Buffer []byte }{
    		Bool:   []byte("false"),
    		Number: []byte("123456789"),
    		String: []byte("hello, world!"),
    		Buffer: make([]byte, 1024),
    	}
    
    	checkNoAllocs := func(f func()) func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 20:29:22 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  10. 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)
Back to top