Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for writeRaw (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. api/go1.20.txt

    pkg go/types, func Satisfies(Type, *Interface) bool #56548
    pkg io/fs, var SkipAll error #47209
    pkg io, func NewOffsetWriter(WriterAt, int64) *OffsetWriter #45899
    pkg io, method (*OffsetWriter) Seek(int64, int) (int64, error) #45899
    pkg io, method (*OffsetWriter) WriteAt([]uint8, int64) (int, error) #45899
    pkg io, method (*OffsetWriter) Write([]uint8) (int, error) #45899
    pkg io, type OffsetWriter struct #45899
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
Back to top