- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 633 for readelf (0.13 sec)
-
src/go/parser/interface.go
switch s := src.(type) { case string: return []byte(s), nil case []byte: return s, nil case *bytes.Buffer: // is io.Reader, but src is already available in []byte form if s != nil { return s.Bytes(), nil } case io.Reader: return io.ReadAll(s) } return nil, errors.New("invalid source") } return os.ReadFile(filename) } // A Mode value is a set of flags (or 0).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/file/file_test.go
t.Fatal(err) } f, err := os.Open(filepath.Join(d, "out")) if err != nil { t.Fatal(err) } m, _ := f.Stat() // Mode should be copied assert.Equal(t, m.Mode(), 0o750) body, _ := io.ReadAll(f) // Contents should be copied assert.Equal(t, body, []byte("hello world")) } func TestCopy(t *testing.T) { copyTest(t, Copy) } func TestAtomicCopy(t *testing.T) { copyTest(t, AtomicCopy) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 11 19:10:54 UTC 2023 - 1.9K bytes - Viewed (0) -
src/encoding/ascii85/ascii85_test.go
t.Fatalf("Encoder.Write(raw) = %d, %v want %d, nil", nn, err, n) } err = w.Close() if err != nil { t.Fatalf("Encoder.Close() = %v want nil", err) } decoded, err := io.ReadAll(NewDecoder(encoded)) if err != nil { t.Fatalf("io.ReadAll(NewDecoder(...)): %v", err) } if !bytes.Equal(raw, decoded) { var i int for i = 0; i < len(decoded) && i < len(raw); i++ { if decoded[i] != raw[i] { break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:46:20 UTC 2022 - 5.8K bytes - Viewed (0) -
internal/rest/client.go
logger.LogOnceIf(ctx, logSubsys, err, c.url.Host) c.MarkOffline(err) } defer xhttp.DrainBody(resp.Body) // Limit the ReadAll(), just in case, because of a bug, the server responds with large data. b, err := io.ReadAll(io.LimitReader(resp.Body, c.MaxErrResponseSize)) if err != nil { if xnet.IsNetworkOrHostDown(err, expectTimeouts) { if !c.NoMetrics {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.4K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/AbstractInstrumentationProcessor.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/notfoundhandler/not_found_handler_test.go
req := httptest.NewRequest("GET", "http://apiserver.com/apis/flowcontrol.apiserver.k8s.io/v1beta1", nil) rw := httptest.NewRecorder() target.ServeHTTP(rw, req) resp := rw.Result() body, err := io.ReadAll(resp.Body) if err != nil { t.Fatal(err) } bodyStr := strings.TrimSuffix(string(body), "\n") if resp.StatusCode != 404 { t.Fatalf("unexpected status code %d, expected 503", resp.StatusCode) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 19 11:26:59 UTC 2021 - 2.5K bytes - Viewed (0) -
src/crypto/tls/quic.go
} c.quic.readbuf = data <-c.quic.signalc _, ok := <-c.quic.blockedc if ok { // The handshake goroutine is waiting for more data. return nil } // The handshake goroutine has exited. c.handshakeMutex.Lock() defer c.handshakeMutex.Unlock() c.hand.Write(c.quic.readbuf) c.quic.readbuf = nil for q.conn.hand.Len() >= 4 && q.conn.handshakeErr == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 15.1K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.h
std::pair<std::unique_ptr<TensorSliceReader::VarToShapeMap>, std::unique_ptr<TensorSliceReader::VarToDataTypeMap> > BuildV2VarMaps(); // Invariant: exactly one of "reader_" and "v2_reader_" is non-null. std::unique_ptr<TensorSliceReader> reader_; std::unique_ptr<BundleReader> v2_reader_; std::unique_ptr<TensorSliceReader::VarToShapeMap> var_to_shape_map_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 12 08:49:52 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_other.go
package mmap import ( "io" "os" ) // mmapFile on other systems doesn't mmap the file. It just reads everything. func mmapFile(f *os.File, _ *Data) (Data, error) { b, err := io.ReadAll(f) if err != nil { return Data{}, err } return Data{f, b, nil}, nil } func munmapFile(d Data) error { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 21:40:49 UTC 2024 - 540 bytes - Viewed (0) -
src/encoding/csv/fuzz_test.go
result, err := r.ReadAll() if err != nil { t.Logf("reader = %#v\n", r) t.Logf("records = %v\n", records) t.Fatal(err) } // The reader turns \r\n into \n. for _, record := range records { for i, s := range record { record[i] = strings.ReplaceAll(s, "\r\n", "\n") } } // Note that the reader parses the quoted record "" as an empty string,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 01:26:13 UTC 2024 - 2.5K bytes - Viewed (0)