- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 944 for readAt (0.14 sec)
-
src/cmd/vendor/golang.org/x/arch/arm/armasm/plan9x.go
case LDRB_EQ, LDRSB_EQ: if _, err := text.ReadAt(buf[:1], int64(addr)); err != nil { break } args[1] = fmt.Sprintf("$%#x", buf[0]) case LDRH_EQ, LDRSH_EQ: if _, err := text.ReadAt(buf[:2], int64(addr)); err != nil { break } args[1] = fmt.Sprintf("$%#x", binary.LittleEndian.Uint16(buf)) case LDR_EQ: if _, err := text.ReadAt(buf[:4], int64(addr)); err != nil { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 11.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/decodesym.go
if sect != nil { bits := ptrdata / int64(ctxt.Arch.PtrSize) r := make([]byte, (bits+7)/8) // ldshlibsyms avoids closing the ELF file so sect.ReadAt works. // If we remove this read (and the ones in decodetypeGcprog), we // can close the file. _, err := sect.ReadAt(r, int64(addr-sect.Addr)) if err != nil { log.Fatal(err) } return r } Exitf("cannot find gcmask for %s", ctxt.loader.SymName(s))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 9.9K bytes - Viewed (0) -
src/debug/elf/reader.go
return r.error } // readSeekerFromReader converts an io.Reader into an io.ReadSeeker. // In general Seek may not be efficient, but it is optimized for // common cases such as seeking to the end to find the length of the // data. type readSeekerFromReader struct { reset func() (io.Reader, error) r io.Reader size int64 offset int64 } func (r *readSeekerFromReader) start() { x, err := r.reset()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:06:17 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
} return asString(s[n : n+int(v)]) } // A reader reads sequential fields from a section of the index format. type reader struct { d *decoder pos int } // readAt returns a reader starting at the given position in d. func (d *decoder) readAt(pos int) *reader { return &reader{d, pos} } // int reads the next int. func (r *reader) int() int { i := r.d.intAt(r.pos) r.pos += 4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/internal/objfile/goobj.go
L: for _, e := range a.Entries { switch e.Type { case archive.EntryPkgDef, archive.EntrySentinelNonObj: continue case archive.EntryGoObj: o := e.Obj b := make([]byte, o.Size) _, err := f.ReadAt(b, o.Offset) if err != nil { return nil, err } r := goobj.NewReaderFromBytes(b, false) var arch *sys.Arch for _, a := range sys.Archs { if a.Name == e.Obj.Arch { arch = a break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 7.8K bytes - Viewed (0) -
src/debug/pe/section.go
type Section struct { SectionHeader Relocs []Reloc // Embed ReaderAt for ReadAt method. // Do not embed SectionReader directly // to avoid having Read and Seek. // If a client wants Read and Seek it must use // Open() to avoid fighting over the seek offset // with other clients. io.ReaderAt sr *io.SectionReader } // Data reads and returns the contents of the PE section s. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 3.5K bytes - Viewed (0) -
cmd/bitrot-whole.go
filePath string verifier *BitrotVerifier // Holds the bit-rot info tillOffset int64 // Affects the length of data requested in disk.ReadFile depending on Read()'s offset buf []byte // Holds bit-rot verified data } func (b *wholeBitrotReader) ReadAt(buf []byte, offset int64) (n int, err error) { if b.buf == nil { b.buf = make([]byte, b.tillOffset-offset)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 2.7K bytes - Viewed (0) -
src/debug/plan9obj/file.go
type Section struct { SectionHeader // Embed ReaderAt for ReadAt method. // Do not embed SectionReader directly // to avoid having Read and Seek. // If a client wants Read and Seek it must use // Open() to avoid fighting over the seek offset // with other clients. io.ReaderAt sr *io.SectionReader } // Data reads and returns the contents of the Plan 9 a.out section.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 7.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho_update_uuid.go
if err := reader.ReadAt(0, &u); err != nil { return err } copy(u.Uuid[:], uuidFromGoBuildId(*flagBuildid)) if err := reader.WriteAt(0, &u); err != nil { return err } break } } // We're done return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 3.3K bytes - Viewed (0) -
src/debug/pe/file.go
!read(&oh32.MajorOperatingSystemVersion) || !read(&oh32.MinorOperatingSystemVersion) || !read(&oh32.MajorImageVersion) || !read(&oh32.MinorImageVersion) || !read(&oh32.MajorSubsystemVersion) || !read(&oh32.MinorSubsystemVersion) || !read(&oh32.Win32VersionValue) || !read(&oh32.SizeOfImage) || !read(&oh32.SizeOfHeaders) || !read(&oh32.CheckSum) || !read(&oh32.Subsystem) ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.2K bytes - Viewed (0)