Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 577 for encodeTo (0.18 sec)

  1. src/encoding/json/bench_test.go

    		for pb.Next() {
    			if err := enc.Encode(&m); err != nil {
    				b.Fatalf("Encode error: %v", err)
    			}
    		}
    	})
    }
    
    func BenchmarkEncoderEncode(b *testing.B) {
    	b.ReportAllocs()
    	type T struct {
    		X, Y string
    	}
    	v := &T{"foo", "bar"}
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			if err := NewEncoder(io.Discard).Encode(v); err != nil {
    				b.Fatalf("Encode error: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/Encdec.java

    /* encdec - encode and decode integers, times, and
     * internationalized strings to and from popular binary formats
     * http://www.ioplex.com/~miallen/encdec/
     * Copyright (c) 2003 Michael B. Allen <******@****.***>
     *
     * The GNU Library General Public License
     * 
     * This library is free software; you can redistribute it and/or
     * modify it under the terms of the GNU Library General Public
     * License as published by the Free Software Foundation; either
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/SocketConnection.java

            objectReader = messageSerializer.newReader(streamSerializer.newDecoder(instr));
            encoder = streamSerializer.newEncoder(outstr);
            objectWriter = messageSerializer.newWriter(encoder);
        }
    
        @Override
        public String toString() {
            return "socket connection from " + localAddress + " to " + remoteAddress;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    	// Accumulate contents into a string.
    	var buf strings.Builder
    	buf.Grow(64) // Heuristic to avoid extra allocs
    
    	// encode a number
    	putNumber := func(v uint64) {
    		var num [binary.MaxVarintLen64]byte
    		n := binary.PutUvarint(num[:], v)
    		buf.Write(num[:n])
    	}
    
    	// encode a string prefixed with its length.
    	putDelimitedString := func(s string) {
    		putNumber(uint64(len(s)))
    		buf.WriteString(s)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. internal/hash/reader.go

    		if r.contentHasher != nil {
    			if r.contentHash.Type.Trailing() {
    				var err error
    				r.contentHash.Encoded = r.trailer.Get(r.contentHash.Type.Key())
    				r.contentHash.Raw, err = base64.StdEncoding.DecodeString(r.contentHash.Encoded)
    				if err != nil || len(r.contentHash.Raw) == 0 {
    					return 0, ChecksumMismatch{Got: r.contentHash.Encoded}
    				}
    			}
    			if sum := r.contentHasher.Sum(nil); !bytes.Equal(r.contentHash.Raw, sum) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/http2/hpack/hpack.go

    type DecodingError struct {
    	Err error
    }
    
    func (de DecodingError) Error() string {
    	return fmt.Sprintf("decoding error: %v", de.Err)
    }
    
    // An InvalidIndexError is returned when an encoder references a table
    // entry before the static table or after the end of the dynamic table.
    type InvalidIndexError int
    
    func (e InvalidIndexError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 14 18:30:34 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/test_schema.fbs

      quantization:QuantizationParameters;  // Optional.
    
      is_variable:bool = false;
    
      // Parameters to encode a sparse tensor. See the example in
      // tensorflow/lite/testdata/sparse_tensor.json.
      sparsity:SparsityParameters;  // Optional.
    
      // Encodes `shape` with unknown dimensions. Unknown dimensions are
      // represented with -1.
      shape_signature:[int]; // Optional.
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 19 19:46:06 UTC 2021
    - 26.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/certificates/v1/types.go

    }
    
    // CertificateSigningRequestSpec contains the certificate request.
    type CertificateSigningRequestSpec struct {
    	// request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block.
    	// When serialized as JSON or YAML, the data is additionally base64-encoded.
    	// +listType=atomic
    	Request []byte `json:"request" protobuf:"bytes,1,opt,name=request"`
    
    	// signerName indicates the requested signer, and is a qualified name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/riscv64/asm.go

    		}
    
    		luiImm, err := riscv.EncodeUImmediate(high)
    		if err != nil {
    			ldr.Errorf(s, "cannot encode R_RISCV_TLS_LE LUI relocation offset for %s: %v", ldr.SymName(rs), err)
    		}
    
    		addiwImm, err := riscv.EncodeIImmediate(low)
    		if err != nil {
    			ldr.Errorf(s, "cannot encode R_RISCV_TLS_LE I-type instruction relocation offset for %s: %v", ldr.SymName(rs), err)
    		}
    
    		lui := int64(uint32(val))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractValueProcessor.java

            ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
            try (KryoBackedEncoder encoder = new KryoBackedEncoder(outputStream)) {
                serializer.write(encoder, Cast.uncheckedCast(value));
                encoder.flush();
            } catch (Exception e) {
                throw newValueSerializationException(value.getClass(), e);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 19:08:37 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top