- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 131 for much (0.18 sec)
-
internal/grid/grid.go
// as an error to be reported. func readAllInto(b []byte, r *wsutil.Reader) ([]byte, error) { for { if len(b) == cap(b) { // Add more capacity (let append pick how much). b = append(b, 0)[:len(b)] } n, err := r.Read(b[len(b):cap(b)]) b = b[:len(b)+n] if err != nil { if errors.Is(err, io.EOF) { err = nil } return b, err } } }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Apr 02 15:56:18 GMT 2024 - 4.8K bytes - Viewed (0) -
src/bufio/scan_test.go
package bufio_test import ( . "bufio" "bytes" "errors" "io" "strings" "testing" "unicode" "unicode/utf8" ) const smallMaxTokenSize = 256 // Much smaller for more efficient testing. // Test white space table matches the Unicode definition. func TestSpace(t *testing.T) { for r := rune(0); r <= utf8.MaxRune; r++ { if IsSpace(r) != unicode.IsSpace(r) {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Viewed (0) -
internal/s3select/json/preader.go
} } // Read until next line. in, err := r.buf.ReadBytes('\n') dst = append(dst, in...) return dst, err } // jsonSplitSize is the size of each block. // Blocks will read this much and find the first following newline. // 128KB appears to be a very reasonable default. const jsonSplitSize = 128 << 10 // startReaders will read the header if needed and spin up a parser
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sun Mar 05 04:57:35 GMT 2023 - 6.4K bytes - Viewed (0) -
misc/cgo/gmp/gmp.go
have pointers into the C world and to free those pointers when they are no longer needed. To help, the Go code can define Go objects holding the C pointers and use runtime.SetFinalizer on those Go objects. It is much more difficult for the C world to have pointers into the Go world, because the Go garbage collector is unaware of the memory allocated by C. The most important consideration is not to
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 9.5K bytes - Viewed (0) -
internal/rest/client.go
} // For client requests, Request.ContentLength of 0 // means either actually 0, or unknown. The only way // to explicitly say that the ContentLength is zero is // to set the Body to nil. But turns out too much code // depends on NewRequest returning a non-nil Body, // so we use a well-known ReadCloser variable instead // and have the http package also treat that sentinel // variable to mean explicitly zero.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 14K bytes - Viewed (0) -
operator/cmd/mesh/install.go
return fmt.Errorf("errors occurred during operation") } // Previously we may install IOP file from the old version of istioctl. Now since we won't install IOP file // anymore, and it didn't provide much value, we can delete it if it exists. reconciler.DeleteIOPInClusterIfExists(iop) opts.ProgressLog.SetState(progress.StateComplete) return nil } func savedIOPName(iop *v1alpha12.IstioOperator) string {
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 15.2K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
// Insert jumps to our custom chains // This is mostly just for visual tidiness and cleanup, as we can delete the secondary chains and jumps // without polluting the main table too much. // -t mangle -A PREROUTING -j ISTIO_PRERT iptablesBuilder.AppendRule( iptableslog.UndefinedCommand, iptablesconstants.PREROUTING, iptablesconstants.MANGLE, "-j", ChainInpodPrerouting, )
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 01:42:30 GMT 2024 - 19.2K bytes - Viewed (0) -
src/bufio/bufio.go
b.r = 0 b.w = 0 n, b.err = b.rd.Read(b.buf) if n < 0 { panic(errNegativeRead) } if n == 0 { return 0, b.readErr() } b.w += n } // copy as much as we can // Note: if the slice panics here, it is probably because // the underlying reader returned a bad count. See issue 49795. n = copy(p, b.buf[b.r:b.w]) b.r += n b.lastByte = int(b.buf[b.r-1])
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Oct 12 14:39:08 GMT 2023 - 21.8K bytes - Viewed (0) -
istioctl/pkg/cli/context.go
rc, err := kube.DefaultRestConfig(kubeconfig, configContext, func(config *rest.Config) { // We are running a one-off command locally, so we don't need to worry too much about rate limiting // Bumping this up greatly decreases install time config.QPS = 50 config.Burst = 100 }) if err != nil { return nil, err }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Apr 02 08:32:06 GMT 2024 - 6.4K bytes - Viewed (0) -
cmd/namespace-lock_test.go
// Unlock the 1st lock; ref=1 after this line nsLk.unlock("volume", "path", false) // Taking another lockMapMutex here allows queuing up additional lockers. This should // not be required but makes reproduction much easier. nsLk.lockMapMutex.Lock() // lk3 blocks. lk3ch := make(chan bool) go func() { lk3ch <- nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 0) }() // lk4, blocks.
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 3.1K bytes - Viewed (0)