Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for writeNL (0.23 sec)

  1. src/cmd/link/internal/ld/symtab.go

    	if elf64 {
    		out.Write32(uint32(off))
    		out.Write8(info)
    		out.Write8(uint8(other))
    		out.Write16(uint16(shndx))
    		out.Write64(uint64(addr))
    		out.Write64(uint64(size))
    		symSize += ELF64SYMSIZE
    	} else {
    		out.Write32(uint32(off))
    		out.Write32(uint32(addr))
    		out.Write32(uint32(size))
    		out.Write8(info)
    		out.Write8(uint8(other))
    		out.Write16(uint16(shndx))
    		symSize += ELF32SYMSIZE
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/macho_combine_dwarf.go

    	if _, err := r.f.Seek(r.offset+offset, 0); err != nil {
    		return err
    	}
    	return binary.Read(r.f, r.order, data)
    }
    
    func (r loadCmdReader) WriteAt(offset int64, data interface{}) error {
    	if _, err := r.f.Seek(r.offset+offset, 0); err != nil {
    		return err
    	}
    	return binary.Write(r.f, r.order, data)
    }
    
    // machoCombineDwarf merges dwarf info generated by dsymutil into a macho executable.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/arm/asm.go

    			out.Write32(uint32(elf.R_ARM_REL32) | uint32(elfsym)<<8)
    		} else {
    			return false
    		}
    	case objabi.R_CALLARM:
    		if siz == 4 {
    			relocs := ldr.Relocs(s)
    			r := relocs.At(ri)
    			if r.Add()&0xff000000 == 0xeb000000 { // BL // TODO: using r.Add here is bad (issue 19811)
    				out.Write32(uint32(elf.R_ARM_CALL) | uint32(elfsym)<<8)
    			} else {
    				out.Write32(uint32(elf.R_ARM_JUMP24) | uint32(elfsym)<<8)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  4. src/net/net.go

    // hide the WriteTo method of that other type.
    type noWriteTo struct{}
    
    // WriteTo hides another WriteTo method.
    // It should never be called.
    func (noWriteTo) WriteTo(io.Writer) (int64, error) {
    	panic("can't happen")
    }
    
    // tcpConnWithoutWriteTo implements all the methods of *TCPConn other
    // than WriteTo. This is used to permit WriteTo to call io.Copy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/net/unixsock.go

    	if !c.ok() {
    		return 0, syscall.EINVAL
    	}
    	a, ok := addr.(*UnixAddr)
    	if !ok {
    		return 0, &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addr, Err: syscall.EINVAL}
    	}
    	n, err := c.writeTo(b, a)
    	if err != nil {
    		err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: a.opAddr(), Err: err}
    	}
    	return n, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

            def stream = new ByteArrayOutputStream()
            def result = resource.writeTo(stream)
            result.bytesRead == 4
            stream.toString() == "1234"
    
            file.setText("abc")
            def stream2 = new ByteArrayOutputStream()
            def result2 = resource.writeTo(stream2)
            result2.bytesRead == 3
            stream2.toString() == "abc"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  7. src/io/io_test.go

    		}
    	}
    
    	var name string
    	name = "Write"
    	t.Run(name, func(t *testing.T) {
    		// Write directly (off: 0, at: 0)
    		// Write content to file
    		w, f := makeOffsetWriter(name)
    		defer f.Close()
    		for _, value := range []byte(content) {
    			n, err := w.Write([]byte{value})
    			if err != nil {
    				t.Fatalf("Write failed, n: %d, err: %v", n, err)
    			}
    		}
    		checkContent(name, f)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  8. src/text/tabwriter/tabwriter.go

    type osError struct {
    	err error
    }
    
    func (b *Writer) write0(buf []byte) {
    	n, err := b.output.Write(buf)
    	if n != len(buf) && err == nil {
    		err = io.ErrShortWrite
    	}
    	if err != nil {
    		panic(osError{err})
    	}
    }
    
    func (b *Writer) writeN(src []byte, n int) {
    	for n > len(src) {
    		b.write0(src)
    		n -= len(src)
    	}
    	b.write0(src[0:n])
    }
    
    var (
    	newline = []byte{'\n'}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  9. src/cmd/link/elf_test.go

    		t.Skip("-buildmode=pie not supported")
    	}
    
    	t.Parallel()
    
    	tmpl := template.Must(template.New("pie").Parse(pieSourceTemplate))
    
    	writeGo := func(t *testing.T, dir string) {
    		f, err := os.Create(filepath.Join(dir, "pie.go"))
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		// Passing a 100-element slice here will cause
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/scope.go

    			}
    		}
    		return s
    	}
    	return nil
    }
    
    // WriteTo writes a string representation of the scope to w,
    // with the scope elements sorted by name.
    // The level of indentation is controlled by n >= 0, with
    // n == 0 for no indentation.
    // If recurse is set, it also writes nested (children) scopes.
    func (s *Scope) WriteTo(w io.Writer, n int, recurse bool) {
    	const ind = ".  "
    	indn := strings.Repeat(ind, n)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top