Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for writeRaw (0.1 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/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)
  3. 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)
  4. 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)
  5. 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)
Back to top