Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for encodeVarintGenerated (0.44 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/types_proto.go

    	}
    
    	// Reverse marshal the fields of m.
    	i := msgSize
    	i -= len(m.ContentType)
    	copy(data[i:], m.ContentType)
    	i = encodeVarintGenerated(data, i, uint64(len(m.ContentType)))
    	i--
    	data[i] = 0x22
    	i -= len(m.ContentEncoding)
    	copy(data[i:], m.ContentEncoding)
    	i = encodeVarintGenerated(data, i, uint64(len(m.ContentEncoding)))
    	i--
    	data[i] = 0x1a
    	if b != nil {
    		if r, ok := b.(ProtobufReverseMarshaller); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go

    	_ = l
    	i -= len(m.StrVal)
    	copy(dAtA[i:], m.StrVal)
    	i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal)))
    	i--
    	dAtA[i] = 0x1a
    	i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal))
    	i--
    	dAtA[i] = 0x10
    	i = encodeVarintGenerated(dAtA, i, uint64(m.Type))
    	i--
    	dAtA[i] = 0x8
    	return len(dAtA) - i, nil
    }
    
    func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
    	offset -= sovGenerated(v)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_proto.go

    	_ = i
    	var l int
    	_ = l
    
    	// BEGIN CUSTOM MARSHAL
    	out := m.String()
    	i -= len(out)
    	copy(data[i:], out)
    	i = encodeVarintGenerated(data, i, uint64(len(out)))
    	// END CUSTOM MARSHAL
    	i--
    	data[i] = 0xa
    
    	return len(data) - i, nil
    }
    
    func encodeVarintGenerated(data []byte, offset int, v uint64) int {
    	offset -= sovGenerated(v)
    	base := offset
    	for v >= 1<<7 {
    		data[offset] = uint8(v&0x7f | 0x80)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 05:31:33 UTC 2021
    - 6K bytes
    - Viewed (0)
Back to top