- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WriteStringPad (0.56 sec)
-
src/cmd/link/internal/ld/outbuf.go
// If n is larger than len(s) then it is padded with zero bytes. func (out *OutBuf) WriteStringN(s string, n int) { out.WriteStringPad(s, n, zeros[:]) } // WriteStringPad writes the first n bytes of s. // If n is larger than len(s) then it is padded with the bytes in pad (repeated as needed). func (out *OutBuf) WriteStringPad(s string, n int, pad []byte) { if len(s) >= n { out.WriteString(s[:n]) } else { out.WriteString(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 19:51:29 UTC 2022 - 8.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
errorexit() } if addr < val { out.WriteStringPad("", int(val-addr), pad) addr = val } P := out.WriteSym(ldr, s) st.relocsym(s, P) if ldr.IsGeneratedSym(s) { f := ctxt.generatorSyms[s] f(ctxt, s) } addr += int64(len(P)) siz := ldr.SymSize(s) if addr < val+siz { out.WriteStringPad("", int(val+siz-addr), pad) addr = val + siz }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (0)