Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 577 for encodeTo (0.11 sec)

  1. src/internal/fuzz/encoding.go

    	"go/token"
    	"math"
    	"strconv"
    	"strings"
    	"unicode/utf8"
    )
    
    // encVersion1 will be the first line of a file with version 1 encoding.
    var encVersion1 = "go test fuzz v1"
    
    // marshalCorpusFile encodes an arbitrary number of arguments into the file format for the
    // corpus.
    func marshalCorpusFile(vals ...any) []byte {
    	if len(vals) == 0 {
    		panic("must have at least one value to marshal")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	for _, l := range p.Location {
    		if l.Mapping == from {
    			l.Mapping = to
    		}
    	}
    }
    
    func serialize(p *Profile) []byte {
    	p.encodeMu.Lock()
    	p.preEncode()
    	b := marshal(p)
    	p.encodeMu.Unlock()
    	return b
    }
    
    // Write writes the profile as a gzip-compressed marshaled protobuf.
    func (p *Profile) Write(w io.Writer) error {
    	zw := gzip.NewWriter(w)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. tests/integration/security/fuzz/fuzz_test.go

    			"double_urlencode-"+ // Applies a double encode to special characters in string using the %25xx escape.
    			// Letters, digits, and the characters '_.-' are never quoted.
    			"first_nibble_hex-"+ // Replaces ALL characters in string using the %%dd? escape.
    			"second_nibble_hex-"+ // Replaces ALL characters in string using the %?%dd escape.
    			"uri_double_hex-"+ // Encodes ALL characters using the %25xx escape.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. src/runtime/pprof/proto.go

    		b.pb.data = b.pb.data[:0]
    	}
    }
    
    // pbValueType encodes a ValueType message to b.pb.
    func (b *profileBuilder) pbValueType(tag int, typ, unit string) {
    	start := b.pb.startMessage()
    	b.pb.int64(tagValueType_Type, b.stringIndex(typ))
    	b.pb.int64(tagValueType_Unit, b.stringIndex(unit))
    	b.pb.endMessage(tag, start)
    }
    
    // pbSample encodes a Sample message to b.pb.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 13 20:40:52 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SpnegoContext.java

            byte[] mechanismListMIC = this.mechContext.calculateMIC(ml);
            if ( log.isDebugEnabled() ) {
                log.debug("Out Mech list " + Arrays.toString(lm));
                log.debug("Out Mech list encoded " + Hexdump.toHexString(ml));
                log.debug("Out Mech list MIC " + Hexdump.toHexString(mechanismListMIC));
            }
            return mechanismListMIC;
        }
    
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Jan 04 04:18:31 UTC 2021
    - 14.8K bytes
    - Viewed (0)
  6. cmd/bucket-replication-metrics_gen_test.go

    	v := ActiveWorkerStat{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeActiveWorkerStat Msgsize() is inaccurate")
    	}
    
    	vn := ActiveWorkerStat{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. internal/hash/checksum.go

    	ChecksumIncludesMultipart
    
    	// ChecksumNone indicates no checksum.
    	ChecksumNone ChecksumType = 0
    )
    
    // Checksum is a type and base 64 encoded value.
    type Checksum struct {
    	Type      ChecksumType
    	Encoded   string
    	Raw       []byte
    	WantParts int
    }
    
    // Is returns if c is all of t.
    func (c ChecksumType) Is(t ChecksumType) bool {
    	if t == ChecksumNone {
    		return c == ChecksumNone
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 08 16:18:34 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. cmd/bucket-replication-utils_gen_test.go

    	v := BucketReplicationResyncStatus{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBucketReplicationResyncStatus Msgsize() is inaccurate")
    	}
    
    	vn := BucketReplicationResyncStatus{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Aug 22 23:53:06 UTC 2022
    - 23K bytes
    - Viewed (0)
  9. cmd/bucket-stats_gen_test.go

    	v := BucketReplicationStat{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBucketReplicationStat Msgsize() is inaccurate")
    	}
    
    	vn := BucketReplicationStat{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v1_gen_test.go

    	v := ChecksumInfo{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeChecksumInfo Msgsize() is inaccurate")
    	}
    
    	vn := ChecksumInfo{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 13.2K bytes
    - Viewed (0)
Back to top