- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 41 for writeRaw (0.18 sec)
-
src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go
return nil, err } // Establish file header and initial data area if not already present. if info.Size() < minFileLen { if _, err := f.WriteAt(hdr, 0); err != nil { return nil, err } // Write zeros at the end of the file to extend it to minFileLen. if _, err := f.WriteAt(m.zero[:], int64(minFileLen-len(m.zero))); err != nil { return nil, err } info, err = f.Stat() if err != nil { return nil, err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 18.2K bytes - Viewed (0) -
src/os/os_test.go
t.Errorf("WriteAt(-10) = %v, %v; want 0, ...%q...", n, err, wantsub) } } // Verify that WriteAt doesn't work in append mode. func TestWriteAtInAppendMode(t *testing.T) { defer chtmpdir(t)() f, err := OpenFile("write_at_in_append_mode.txt", O_APPEND|O_CREATE, 0666) if err != nil { t.Fatalf("OpenFile: %v", err) } defer f.Close() _, err = f.WriteAt([]byte(""), 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho.go
var tmp [8]byte mf.ByteOrder.PutUint32(tmp[:4], uint32(sz)) _, err = f.WriteAt(tmp[:4], csCmdOff+12) if err != nil { return err } // Uodate the __LINKEDIT segment. segSz := sigOff + sz - int64(linkeditSeg.Offset) mf.ByteOrder.PutUint64(tmp[:8], uint64(segSz)) _, err = f.WriteAt(tmp[:8], int64(linkeditOff)+int64(unsafe.Offsetof(macho.Segment64{}.Memsz))) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 43.9K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
} n, err = lw.w.Write(p) lw.remain -= n return n, err } func TestMarshalWriteErrors(t *testing.T) { var buf bytes.Buffer const writeCap = 1024 w := &limitedBytesWriter{&buf, writeCap} enc := NewEncoder(w) var err error var i int const n = 4000 for i = 1; i <= n; i++ { err = enc.Encode(&Passenger{ Name: []string{"Alice", "Bob"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
src/cmd/gofmt/gofmt.go
// Rewriting the file failed. if n == 0 { // Original file unchanged. os.Remove(bakname) return err } // Try to restore the original contents. no, erro := fout.WriteAt(orig, 0) if erro != nil { // That failed too. restoreFail(erro) return err } if no < n { // Original file is shorter. Truncate. if erro = fout.Truncate(int64(no)); erro != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashBiMap.java
*/ @GwtIncompatible // java.io.ObjectOutputStream @J2ktIncompatible private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); Serialization.writeMap(this, stream); } @GwtIncompatible // java.io.ObjectInputStream @J2ktIncompatible private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 13 14:11:58 UTC 2023 - 24.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBiMap.java
*/ @GwtIncompatible // java.io.ObjectOutputStream @J2ktIncompatible private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); Serialization.writeMap(this, stream); } @GwtIncompatible // java.io.ObjectInputStream @J2ktIncompatible private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 36.4K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
} defer func() { if closeErr := hf.Close(); err == nil && closeErr != nil { err = closeErr } }() if err := hf.Truncate(int64(len(hash))); err != nil { return err } if _, err := hf.WriteAt([]byte(hash), 0); err != nil { return err } return nil } // makeDirsReadOnly makes a best-effort attempt to remove write permissions for dir // and its transitive contents.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/debug.go
if cap(buf) < len(buf)+20 { b := make([]byte, len(buf), 20+cap(buf)*2) copy(b, buf) buf = b } writeAt := len(buf) buf = buf[0 : len(buf)+ctxt.Arch.PtrSize] writePtr(ctxt, buf[writeAt:], word) return buf } // Write a pointer-sized uint to the beginning of buf. func writePtr(ctxt *obj.Link, buf []byte, word uint64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 58.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Seeker", Type, 0}, {"StringWriter", Type, 12}, {"TeeReader", Func, 0}, {"WriteCloser", Type, 0}, {"WriteSeeker", Type, 0}, {"WriteString", Func, 0}, {"Writer", Type, 0}, {"WriterAt", Type, 0}, {"WriterTo", Type, 0}, }, "io/fs": { {"(*PathError).Error", Method, 16}, {"(*PathError).Timeout", Method, 16}, {"(*PathError).Unwrap", Method, 16},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)