- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,541 for readArg (0.12 sec)
-
src/internal/zstd/literals.go
return 0, nil, err } return roff, outbuf, nil } // readLiteralsOneStream reads a single stream of compressed literals. func (r *Reader) readLiteralsOneStream(data block, off, compressedSize, regeneratedSize int, outbuf []byte) ([]byte, error) { // We let the reverse bit reader read earlier bytes, // because the Huffman table ignores bits that it doesn't need. rbr, err := r.makeReverseBitReader(data, off+compressedSize-1, off-2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 14:30:10 UTC 2023 - 8.8K bytes - Viewed (0) -
cmd/gotemplate/gotemplate.go
if err := generate(os.Stdin, os.Stdout, kvs); err != nil { fmt.Fprintf(os.Stderr, "Error: %v\n", err) os.Exit(1) } } func generate(in io.Reader, out io.Writer, data interface{}) error { var buf bytes.Buffer if _, err := buf.ReadFrom(in); err != nil { return fmt.Errorf("reading input: %v", err) } funcMap := template.FuncMap{ "include": include, "indent": indent, "trim": trim, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 22 18:39:23 UTC 2023 - 2.6K bytes - Viewed (0) -
src/encoding/gob/decoder.go
err error } // NewDecoder returns a new decoder that reads from the [io.Reader]. // If r does not also implement [io.ByteReader], it will be wrapped in a // [bufio.Reader]. func NewDecoder(r io.Reader) *Decoder { dec := new(Decoder) // We use the ability to read bytes as a plausible surrogate for buffering. if _, ok := r.(io.ByteReader); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
* * ## Upstream * * In this case the current thread is assigned as the upstream reader. We read bytes from * upstream and copy them to both the file and to the buffer. Finally we release the upstream * reader lock and return the new bytes. * * ## The file * * In this case we copy bytes from the file to the [sink]. *
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.8K bytes - Viewed (0) -
cmd/erasure-healing.go
var found int var notFound int var foundNotEmpty int var otherFound int for _, readErr := range errs { switch { case readErr == nil: found++ case readErr == errFileNotFound || readErr == errVolumeNotFound: notFound++ case readErr == errVolumeNotEmpty: foundNotEmpty++ default: otherFound++ } } found = found + foundNotEmpty + otherFound
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 33.8K bytes - Viewed (0) -
src/net/udpsock_plan9.go
} if m < udpHeaderSize { return 0, netip.AddrPort{}, errors.New("short read reading UDP header") } buf = buf[:m] h, buf := unmarshalUDPHeader(buf) n := copy(b, buf) ip, _ := netip.AddrFromSlice(h.raddr) addr := netip.AddrPortFrom(ip, h.rport) return n, addr, nil } func (c *UDPConn) readMsg(b, oob []byte) (n, oobn, flags int, addr netip.AddrPort, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 02 18:35:35 UTC 2021 - 4.6K bytes - Viewed (0) -
src/net/textproto/reader_test.go
package textproto import ( "bufio" "bytes" "io" "net" "reflect" "runtime" "strings" "sync" "testing" ) func reader(s string) *Reader { return NewReader(bufio.NewReader(strings.NewReader(s))) } func TestReadLine(t *testing.T) { r := reader("line1\nline2\n") s, err := r.ReadLine() if s != "line1" || err != nil { t.Fatalf("Line 1: %s, %v", s, err) } s, err = r.ReadLine()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14.7K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
* than would be returned by reading all of the bytes (for example, some special files may return * a size of 0 despite actually having content when read). * * <p>In either case, for mutable sources such as files, a subsequent read may return a different * number of bytes if the contents are changed. * * @throws IOException if an I/O error occurs while reading the size of this source */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 26.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go
} // getResponseCode reads a http response from the given reader, returns the response, // the bytes read from the reader, and any error encountered func getResponse(r io.Reader) (*http.Response, []byte, error) { rawResponse := bytes.NewBuffer(make([]byte, 0, 256)) // Save the bytes read while reading the response headers into the rawResponse buffer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:10:30 UTC 2024 - 19.6K bytes - Viewed (0) -
src/bufio/bufio.go
// NewReaderSize returns a new [Reader] whose buffer has at least the specified // size. If the argument io.Reader is already a [Reader] with large enough // size, it returns the underlying [Reader]. func NewReaderSize(rd io.Reader, size int) *Reader { // Is it already a Reader? b, ok := rd.(*Reader) if ok && len(b.buf) >= size { return b } r := new(Reader) r.reset(make([]byte, max(size, minReadBufferSize)), rd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0)