Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 123 for iota (0.03 sec)

  1. src/net/interface_plan9.go

    }
    
    func readInterface(i int) (*Interface, error) {
    	ifc := &Interface{
    		Index: i + 1,                             // Offset the index by one to suit the contract
    		Name:  netdir + "/ipifc/" + itoa.Itoa(i), // Name is the full path to the interface path in plan9
    	}
    
    	ifcstat := ifc.Name + "/status"
    	ifcstatf, err := open(ifcstat)
    	if err != nil {
    		return nil, err
    	}
    	defer ifcstatf.close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/math/big/intmarsh.go

    	return nil
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    func (x *Int) MarshalText() (text []byte, err error) {
    	if x == nil {
    		return []byte("<nil>"), nil
    	}
    	return x.abs.itoa(x.neg, 10), nil
    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    func (z *Int) UnmarshalText(text []byte) error {
    	if _, ok := z.setFromScanner(bytes.NewReader(text), 0); !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. src/os/writeto_linux_test.go

    		32769,
    	}
    	t.Run("sendfile-to-unix", func(t *testing.T) {
    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    				testSendFile(t, "unix", int64(size))
    			})
    		}
    	})
    	t.Run("sendfile-to-tcp", func(t *testing.T) {
    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    				testSendFile(t, "tcp", int64(size))
    			})
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/crypto/tls/alert.go

    	alertECHRequired:                  "encrypted client hello required",
    }
    
    func (e alert) String() string {
    	s, ok := alertText[e]
    	if ok {
    		return "tls: " + s
    	}
    	return "tls: alert(" + strconv.Itoa(int(e)) + ")"
    }
    
    func (e alert) Error() string {
    	return e.String()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/archive/tar/stat_unix.go

    		if u, ok := userMap.Load(h.Uid); ok {
    			h.Uname = u.(string)
    		} else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil {
    			h.Uname = u.Username
    			userMap.Store(h.Uid, h.Uname)
    		}
    		if g, ok := groupMap.Load(h.Gid); ok {
    			h.Gname = g.(string)
    		} else if g, err := user.LookupGroupId(strconv.Itoa(h.Gid)); err == nil {
    			h.Gname = g.Name
    			groupMap.Store(h.Gid, h.Gname)
    		}
    	}
    	h.AccessTime = statAtime(sys)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/math/big/intconv.go

    	if x == nil {
    		return "<nil>"
    	}
    	return string(x.abs.itoa(x.neg, base))
    }
    
    // Append appends the string representation of x, as generated by
    // x.Text(base), to buf and returns the extended buffer.
    func (x *Int) Append(buf []byte, base int) []byte {
    	if x == nil {
    		return append(buf, "<nil>"...)
    	}
    	return append(buf, x.abs.itoa(x.neg, base)...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. src/strconv/atoi.go

    }
    
    func baseError(fn, str string, base int) *NumError {
    	return &NumError{fn, stringslite.Clone(str), errors.New("invalid base " + Itoa(base))}
    }
    
    func bitSizeError(fn, str string, bitSize int) *NumError {
    	return &NumError{fn, stringslite.Clone(str), errors.New("invalid bit size " + Itoa(bitSize))}
    }
    
    const intSize = 32 << (^uint(0) >> 63)
    
    // IntSize is the size in bits of an int or uint value.
    const IntSize = intSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue33555.go

    	if err := ioutil.WriteFile(fn, buf.Bytes(), 0644); err != nil {
    		return err
    	}
    
    	out, err := exec.Command("go", "run", fn).CombinedOutput()
    	if err != nil {
    		return err
    	}
    
    	want := strconv.Itoa(count + 1)
    	if got := string(bytes.TrimSpace(out)); got != want {
    		return fmt.Errorf("got %q want %q", got, want)
    	}
    
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/archive/tar/strconv.go

    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    	// Final adjustment if adding size field increased the record size.
    	if len(record) != size {
    		size = len(record)
    		record = strconv.Itoa(size) + " " + k + "=" + v + "\n"
    	}
    	return record, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. src/os/user/user.go

    }
    
    // UnknownUserIdError is returned by [LookupId] when a user cannot be found.
    type UnknownUserIdError int
    
    func (e UnknownUserIdError) Error() string {
    	return "user: unknown userid " + strconv.Itoa(int(e))
    }
    
    // UnknownUserError is returned by [Lookup] when
    // a user cannot be found.
    type UnknownUserError string
    
    func (e UnknownUserError) Error() string {
    	return "user: unknown user " + string(e)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top