- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ReaderFrom (0.13 sec)
-
internal/http/response-recorder.go
rf, _ := w.(io.ReaderFrom) return &ResponseRecorder{ ResponseWriter: w, ReaderFrom: rf, StatusCode: http.StatusOK, StartTime: time.Now().UTC(), } } // ErrNotImplemented when a functionality is not implemented var ErrNotImplemented = errors.New("not implemented") // ReadFrom implements support for calling internal io.ReaderFrom implementations
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/ioutil/discard.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package ioutil import ( "io" ) // Discard is just like io.Discard without the io.ReaderFrom compatible // implementation which is buggy on NUMA systems, we have to use a simpler // io.Writer implementation alone avoids also unnecessary buffer copies, // and as such incurred latencies. var Discard io.Writer = discard{}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Nov 06 22:26:08 UTC 2023 - 1.3K bytes - Viewed (0) -
src/bufio/bufio.go
} // ReadFrom implements [io.ReaderFrom]. If the underlying writer // supports the ReadFrom method, this calls the underlying ReadFrom. // If there is buffered data and an underlying ReadFrom, this fills // the buffer and writes it before calling ReadFrom. func (b *Writer) ReadFrom(r io.Reader) (n int64, err error) { if b.err != nil { return 0, b.err } readerFrom, readerFromOK := b.wr.(io.ReaderFrom) var m int
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
src/bufio/bufio_test.go
const bufSize = 16 << 10 buf := make([]byte, bufSize) r := bytes.NewReader(buf) srcReader := NewReaderSize(onlyReader{r}, 1<<10) if _, ok := io.Discard.(io.ReaderFrom); !ok { b.Fatal("io.Discard doesn't support ReaderFrom") } for i := 0; i < b.N; i++ { r.Seek(0, io.SeekStart) srcReader.Reset(onlyReader{r}) n, err := srcReader.WriteTo(io.Discard) if err != nil { b.Fatal(err)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
api/go1.txt
pkg io, type Reader interface, Read([]uint8) (int, error) pkg io, type ReaderAt interface { ReadAt } pkg io, type ReaderAt interface, ReadAt([]uint8, int64) (int, error) pkg io, type ReaderFrom interface { ReadFrom } pkg io, type ReaderFrom interface, ReadFrom(Reader) (int64, error) pkg io, type RuneReader interface { ReadRune } pkg io, type RuneReader interface, ReadRune() (int32, int, error)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)