Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for encodeInt (0.15 sec)

  1. src/encoding/gob/encgen.go

    		ipart := floatBits(imag(x))
    		state.encodeUint(rpart)
    		state.encodeUint(ipart)`,
    	},
    	{
    		"float32",
    		"Float32",
    		"0",
    		`bits := floatBits(float64(x))
    		state.encodeUint(bits)`,
    	},
    	{
    		"float64",
    		"Float64",
    		"0",
    		`bits := floatBits(x)
    		state.encodeUint(bits)`,
    	},
    	{
    		"int",
    		"Int",
    		"0",
    		`state.encodeInt(int64(x))`,
    	},
    	{
    		"int16",
    		"Int16",
    		"0",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/encoding/gob/encoder.go

    	if _, alreadySent := enc.sent[actual]; alreadySent {
    		return false
    	}
    	info, err := getTypeInfo(ut)
    	if err != nil {
    		enc.setError(err)
    		return
    	}
    	// Send the pair (-id, type)
    	// Id:
    	state.encodeInt(-int64(info.id))
    	// Type:
    	enc.encode(state.b, reflect.ValueOf(info.wire), wireTypeUserInfo)
    	enc.writeMessage(w, state.b)
    	if enc.err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

    internal fun String.canonicalize(
      pos: Int = 0,
      limit: Int = length,
      encodeSet: String,
      alreadyEncoded: Boolean = false,
      strict: Boolean = false,
      plusIsSpace: Boolean = false,
      unicodeAllowed: Boolean = false,
    ): String {
      return canonicalizeWithCharset(
        pos = pos,
        limit = limit,
        encodeSet = encodeSet,
        alreadyEncoded = alreadyEncoded,
        strict = strict,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/FormBody.kt

          ) = apply {
            names +=
              name.canonicalizeWithCharset(
                encodeSet = FORM_ENCODE_SET,
                // Plus is encoded as `%2B`, space is encoded as plus.
                plusIsSpace = false,
                charset = charset,
              )
            values +=
              value.canonicalizeWithCharset(
                encodeSet = FORM_ENCODE_SET,
                // Plus is encoded as `%2B`, space is encoded as plus.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go

    	return c.doEncode(obj, w, memAlloc)
    }
    
    func (c *codec) doEncode(obj runtime.Object, w io.Writer, memAlloc runtime.MemoryAllocator) error {
    	encodeFn := c.encoder.Encode
    	if memAlloc != nil {
    		if encoder, supportsAllocator := c.encoder.(runtime.EncoderWithAllocator); supportsAllocator {
    			encodeFn = func(obj runtime.Object, w io.Writer) error {
    				return encoder.EncodeWithAllocator(obj, w, memAlloc)
    			}
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 9.8K bytes
    - Viewed (0)
Back to top