- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 1,413 for reader (0.06 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/main.go
fmt.Fprintln(banner, color.Blue("Version:")+color.Bold(" %s (%s %s/%s)", ReleaseTag, runtime.Version(), runtime.GOOS, runtime.GOARCH)) } func versionBanner(c *cli.Context) io.Reader { banner := &strings.Builder{} fmt.Fprintln(banner, color.Bold("%s version %s (commit-id=%s)", c.App.Name, c.App.Version, CommitID))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 30 22:59:48 UTC 2024 - 6.5K bytes - Viewed (0) -
internal/ioutil/ioutil_test.go
if string(b) != expected { t.Errorf("AppendFile() failed, expected: %s, got %s", expected, string(b)) } } func TestSkipReader(t *testing.T) { testCases := []struct { src io.Reader skipLen int64 expected string }{ {bytes.NewBuffer([]byte("")), 0, ""}, {bytes.NewBuffer([]byte("")), 1, ""}, {bytes.NewBuffer([]byte("abc")), 0, "abc"}, {bytes.NewBuffer([]byte("abc")), 1, "bc"},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartReader.kt
} } // There's another part. Parse its headers and return it. val headers = HeadersReader(source).readHeaders() val partSource = PartSource() currentPart = partSource return Part(headers, partSource.buffer()) } /** A single part in the stream. It is an error to read this after calling [nextPart]. */ private inner class PartSource : Source {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractIterator.java
* * <p>{@code Iterator} requires its implementations to support querying the end-of-data status * without changing the iterator's state, using the {@link #hasNext} method. But many data sources, * such as {@link java.io.Reader#read()}, do not expose this information; the only way to discover * whether there is any data left is by trying to retrieve it. These types of data sources are
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Mar 18 02:04:10 UTC 2022 - 6.4K bytes - Viewed (0) -
src/archive/zip/writer_test.go
} } } func testCreate(t *testing.T, w *Writer, wt *WriteTest) { header := &FileHeader{ Name: wt.Name, Method: wt.Method, } if wt.Mode != 0 { header.SetMode(wt.Mode) } f, err := w.CreateHeader(header) if err != nil { t.Fatal(err) } _, err = f.Write(wt.Data) if err != nil { t.Fatal(err) } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 14.4K bytes - Viewed (0) -
cmd/bucket-replication-handlers.go
return } if sameTarget && bucket == clnt.Bucket { writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrBucketRemoteIdenticalToSource), r.URL) return } reader := bytes.NewReader(buf) // fake a PutObject and RemoveObject call to validate permissions c := &minio.Core{Client: clnt.Client} putOpts := minio.PutObjectOptions{ Internal: minio.AdvancedPutOptions{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 23.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Reader; import java.io.Serializable; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.lang.reflect.AnnotatedElement; import java.lang.reflect.Array;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 20.8K bytes - Viewed (0) -
internal/config/identity/openid/jwt.go
"RS3256", "RS3384", "RS3512", "ES3256", "ES3384", "ES3512", } keyFuncCallback := func(jwtToken *jwtgo.Token) (interface{}, error) { kid, ok := jwtToken.Header["kid"].(string) if !ok { return nil, fmt.Errorf("Invalid kid value %v", jwtToken.Header["kid"]) } pubkey := r.pubKeys.get(kid) if pubkey == nil { return nil, fmt.Errorf("No public key found for kid %s", kid) } return pubkey, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 02:46:36 UTC 2024 - 8.4K bytes - Viewed (0) -
internal/logger/logrotate.go
if w.f != nil { if err := w.closeCurrentFile(); err != nil { return err } } return nil } var stdErrEnc = json.NewEncoder(os.Stderr) func (w *Writer) listen() { for { var r io.Reader = w.pr if w.opts.MaximumFileSize > 0 { r = io.LimitReader(w.pr, w.opts.MaximumFileSize) } if _, err := io.Copy(w.f, r); err != nil { msg := fmt.Sprintf("unable to write to log file %v: %v", w.f.Name(), err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0)