Discover Packages
github.com/corona10/go
src
cmd
internal
buildid
package
Version:
v0.0.0-...-7a21894
Opens a new window with list of versions in this module.
Published: Feb 24, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types FindAndHash(r, id, bufSize) ReadELFNote(filename, name, typ) ReadFile(name) Rewrite(w, pos, id)
Documentation
¶
func FindAndHash(r io.Reader, id string, bufSize int) (matches []int64, hash [32]byte, err error)
func ReadELFNote(filename, name string, typ int32) ([]byte, error)
func ReadFile(name string) (id string, err error)
func Rewrite(w io.WriterAt, pos []int64, id string) error
FindAndHash reads all of r and returns the offsets of occurrences of id.
While reading, findAndHash also computes and returns
a hash of the content of r, but with occurrences of id replaced by zeros.
FindAndHash reads bufSize bytes from r at a time.
If bufSize == 0, FindAndHash uses a reasonable default.
ReadFile reads the build ID from an archive or executable file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.