Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for AppendUint (0.48 sec)

  1. src/net/netip/netip.go

    const digits = "0123456789abcdef"
    
    // appendDecimal appends the decimal string representation of x to b.
    func appendDecimal(b []byte, x uint8) []byte {
    	// Using this function rather than strconv.AppendUint makes IPv4
    	// string building 2x faster.
    
    	if x >= 100 {
    		b = append(b, digits[x/100])
    	}
    	if x >= 10 {
    		b = append(b, digits[x/10%10])
    	}
    	return append(b, digits[x%10])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. src/log/slog/value.go

    func (v Value) append(dst []byte) []byte {
    	switch v.Kind() {
    	case KindString:
    		return append(dst, v.str()...)
    	case KindInt64:
    		return strconv.AppendInt(dst, int64(v.num), 10)
    	case KindUint64:
    		return strconv.AppendUint(dst, v.num, 10)
    	case KindFloat64:
    		return strconv.AppendFloat(dst, v.float(), 'g', -1, 64)
    	case KindBool:
    		return strconv.AppendBool(dst, v.bool())
    	case KindDuration:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v1_gen.go

    	// map header, size 3
    	// string "PartNumber"
    	o = append(o, 0x83, 0xaa, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72)
    	o = msgp.AppendInt(o, z.PartNumber)
    	// string "Algorithm"
    	o = append(o, 0xa9, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d)
    	o = msgp.AppendUint(o, uint(z.Algorithm))
    	// string "Hash"
    	o = append(o, 0xa4, 0x48, 0x61, 0x73, 0x68)
    	o = msgp.AppendBytes(o, z.Hash)
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  4. src/database/sql/convert.go

    	switch rv.Kind() {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return strconv.AppendInt(buf, rv.Int(), 10), true
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return strconv.AppendUint(buf, rv.Uint(), 10), true
    	case reflect.Float32:
    		return strconv.AppendFloat(buf, rv.Float(), 'g', -1, 32), true
    	case reflect.Float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/encoding/xml/marshal.go

    			case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    				if err := emit(p, strconv.AppendInt(scratch[:0], vf.Int(), 10)); err != nil {
    					return err
    				}
    			case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    				if err := emit(p, strconv.AppendUint(scratch[:0], vf.Uint(), 10)); err != nil {
    					return err
    				}
    			case reflect.Float32, reflect.Float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. src/encoding/json/encode.go

    	b := e.AvailableBuffer()
    	b = mayAppendQuote(b, opts.quoted)
    	b = strconv.AppendInt(b, v.Int(), 10)
    	b = mayAppendQuote(b, opts.quoted)
    	e.Write(b)
    }
    
    func uintEncoder(e *encodeState, v reflect.Value, opts encOpts) {
    	b := e.AvailableBuffer()
    	b = mayAppendQuote(b, opts.quoted)
    	b = strconv.AppendUint(b, v.Uint(), 10)
    	b = mayAppendQuote(b, opts.quoted)
    	e.Write(b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. cmd/local-locker_gen.go

    	// map header, size 3
    	// string "Total"
    	o = append(o, 0x83, 0xa5, 0x54, 0x6f, 0x74, 0x61, 0x6c)
    	o = msgp.AppendInt(o, z.Total)
    	// string "Writes"
    	o = append(o, 0xa6, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73)
    	o = msgp.AppendInt(o, z.Writes)
    	// string "Reads"
    	o = append(o, 0xa5, 0x52, 0x65, 0x61, 0x64, 0x73)
    	o = msgp.AppendInt(o, z.Reads)
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. cmd/metacache-set_gen.go

    	o = msgp.AppendBool(o, z.StopDiskAtLimit)
    	// string "pool"
    	o = append(o, 0xa4, 0x70, 0x6f, 0x6f, 0x6c)
    	o = msgp.AppendInt(o, z.pool)
    	// string "set"
    	o = append(o, 0xa3, 0x73, 0x65, 0x74)
    	o = msgp.AppendInt(o, z.set)
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *listPathOptions) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	var field []byte
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 19 20:23:12 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. cmd/batch-handlers_gen.go

    	// string "lu"
    	o = append(o, 0xa2, 0x6c, 0x75)
    	o = msgp.AppendTime(o, z.LastUpdate)
    	// string "ra"
    	o = append(o, 0xa2, 0x72, 0x61)
    	o = msgp.AppendInt(o, z.RetryAttempts)
    	// string "at"
    	o = append(o, 0xa2, 0x61, 0x74)
    	o = msgp.AppendInt(o, z.Attempts)
    	// string "cmp"
    	o = append(o, 0xa3, 0x63, 0x6d, 0x70)
    	o = msgp.AppendBool(o, z.Complete)
    	// string "fld"
    	o = append(o, 0xa3, 0x66, 0x6c, 0x64)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. src/archive/tar/writer.go

    			// Format the sparse map.
    			hdr.Size = 0 // Replace with encoded size
    			spb = append(strconv.AppendInt(spb, int64(len(spd)), 10), '\n')
    			for _, s := range spd {
    				hdr.Size += s.Length
    				spb = append(strconv.AppendInt(spb, s.Offset, 10), '\n')
    				spb = append(strconv.AppendInt(spb, s.Length, 10), '\n')
    			}
    			pad := blockPadding(int64(len(spb)))
    			spb = append(spb, zeroBlock[:pad]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top