Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Flags Flags Key, Value string OSVersion uint32 HWCap uint64 // contains filtered or unexported fields }
Entry represents an entry in a ld.so.cache file
type EntryList ¶ added in v0.1.2
type EntryList []*Entry
EntryList implements the required methods to make Entries sortable
type File ¶
File represents a ld.so.cache file data
func Open ¶
Open opens the provided filename and will read it as a ld.so.cache file, returning an instance of File on successful read.
func Read ¶
Read reads a ld.so.cache file from a given reader, and returns an instance of File on successful read. Byte order of the read file will be detected automatically
func ReadWithOrder ¶
ReadWithOrder reads data from a given ld.so.cache file using the specified byte order note that if the byte order is wrong, this may result in attempts to allocate large amounts of memory
func (*File) ReadFrom ¶
ReadFrom will read data from a given reader, assuming the header has already been read
func (*File) SaveAs ¶
SaveAs creates a file with the given filename and writes the ld.so.cache data to it