Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,009 for bytesB (0.14 sec)

  1. internal/dsync/lock-args_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalLockArgs(t *testing.T) {
    	v := LockArgs{}
    	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.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformingClassLoader.java

            String resourceName = name.replace('.', '/') + ".class";
            URL resource = findResource(resourceName);
    
            byte[] bytes;
            CodeSource codeSource;
            try {
                if (resource != null) {
                    bytes = loadBytecode(resource);
                    bytes = transform(name, bytes);
                    URL codeBase = ClasspathUtil.getClasspathForResource(resource, resourceName).toURI().toURL();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/AbstractEncoder.java

            return stream;
        }
    
        @Override
        public void writeBytes(byte[] bytes) throws IOException {
            writeBytes(bytes, 0, bytes.length);
        }
    
        @Override
        public void writeBinary(byte[] bytes) throws IOException {
            writeBinary(bytes, 0, bytes.length);
        }
    
        @Override
        public void writeBinary(byte[] bytes, int offset, int count) throws IOException {
            writeSmallInt(count);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/discovery/v1beta1/types.go

    	// * FQDN: Represents a Fully Qualified Domain Name.
    	AddressType AddressType `json:"addressType" protobuf:"bytes,4,rep,name=addressType"`
    
    	// endpoints is a list of unique endpoints in this slice. Each slice may
    	// include a maximum of 1000 endpoints.
    	// +listType=atomic
    	Endpoints []Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"`
    
    	// ports specifies the list of network ports exposed by each endpoint in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:26:19 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. src/compress/flate/example_test.go

    			}
    
    			fmt.Printf("Received %d bytes: %s\n", n, b[:n])
    		}
    		fmt.Println()
    
    		if err := zr.Close(); err != nil {
    			log.Fatal(err)
    		}
    	}()
    
    	// Output:
    	// Received 1 bytes: A
    	// Received 4 bytes: long
    	// Received 4 bytes: time
    	// Received 3 bytes: ago
    	// Received 2 bytes: in
    	// Received 1 bytes: a
    	// Received 6 bytes: galaxy
    	// Received 4 bytes: far,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 18:42:35 UTC 2016
    - 6.5K bytes
    - Viewed (0)
  6. internal/grid/types_test.go

    			b.Fatal(err)
    		}
    	}
    }
    
    func TestMarshalUnmarshalBytes(t *testing.T) {
    	v := Bytes([]byte("abc123123123"))
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	var v2 Bytes
    	left, err := v2.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) != 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. internal/bucket/bandwidth/monitor_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBucketBandwidthReport(t *testing.T) {
    	v := BucketBandwidthReport{}
    	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: Mon Feb 19 22:54:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. cmd/tier-last-day-stats_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalDailyAllTierStats(t *testing.T) {
    	v := DailyAllTierStats{}
    	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: Mon Feb 19 22:54:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/discovery/v1/types.go

    	// * FQDN: Represents a Fully Qualified Domain Name.
    	AddressType AddressType `json:"addressType" protobuf:"bytes,4,rep,name=addressType"`
    
    	// endpoints is a list of unique endpoints in this slice. Each slice may
    	// include a maximum of 1000 endpoints.
    	// +listType=atomic
    	Endpoints []Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"`
    
    	// ports specifies the list of network ports exposed by each endpoint in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/ecdh.go

    	return k, nil
    }
    
    func (k *PublicKeyECDH) Bytes() []byte { return k.bytes }
    
    func NewPrivateKeyECDH(curve string, bytes []byte) (*PrivateKeyECDH, error) {
    	nid, err := curveNID(curve)
    	if err != nil {
    		return nil, err
    	}
    	key := C._goboringcrypto_EC_KEY_new_by_curve_name(nid)
    	if key == nil {
    		return nil, fail("EC_KEY_new_by_curve_name")
    	}
    	b := bytesToBN(bytes)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top