hexdump

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper struct {
	// contains filtered or unexported fields
}

func New

func New(w io.Writer, startOffset int64, addrLen int, addrBase int, lineBytes int,
	hexFn func(b byte) string,
	asciiFn func(b byte) string,
	dumpHeaderFn func(s string) string,
	dumpAddrFn func(s string) string,
	column string) *Dumper

TODO: something more generic? bin, octal, arbitrary base? TODO: template for columns? TODO: merge with dump? TODO: replace addrLen with highest address and calc instead TODO: use dump options? config struct?

func (*Dumper) Close

func (d *Dumper) Close() error

func (*Dumper) Write

func (d *Dumper) Write(p []byte) (n int, err error)

func (*Dumper) WriteBits

func (d *Dumper) WriteBits(p []byte, nBits int64) (n int64, err error)

Jump to

Keyboard shortcuts

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