binary

package
v0.3.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package binary provides utilities to handle binary file offset analysis.

Deprecated: This package is no longer supported.

Index

Constants

This section is empty.

Variables

View Source
var ErrOffsetsNotFound = errors.New("could not find offset")

ErrOffsetsNotFound is returned when the requested offsets cannot be found.

Functions

This section is empty.

Types

type DataMember

type DataMember struct {
	StructName string
	Field      string
}

DataMember defines a data structure.

type DataMemberOffset

type DataMemberOffset struct {
	*DataMember
	Offset uint64
}

DataMemberOffset is the offset of a DataMember.

type Result

type Result struct {
	DataMembers []*DataMemberOffset
}

Results are all the returned offsets for a data member.

func FindOffsets

func FindOffsets(file *os.File, dataMembers []*DataMember) (*Result, error)

FindOffsets finds all the dataMembers offsets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL