utils

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 0 Imported by: 6

README

binary-utilities

A collection of cli utilities for manipulating binary files.

Releases (precompiled binaries)

bytepad

Pads a file to a desired size with a specified padding byte

Usage
./bytepad -size=<new size of file> -data=<byte data to pad file with> <path to file>
Example

To pad file EVGA.GTX680.2048.120713.rom with FF's to 262144 bytes (256KiB):

./bytepad -size=262144 -data=0xFF ~/Downloads/EVGA.GTX680.2048.120713.rom

You can also omit -data in which 00's will be used for padding:

./bytepad -size=262144 ~/Downloads/EVGA.GTX680.2048.120713.rom

cap2rom

Strips the header from an ASUS .CAP file to conver it to a .rom file for hardware flashing

Usage
./cap2rom foo.CAP

which writes the .rom file alongside the specified .CAP file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(b byte, size int64) (bs []byte)

Bytes creates a byte slice with all indicies initialized to a specified value

func NearPowerOfTwo

func NearPowerOfTwo(v int64) int64

NearPowerOfTwo returns the value of nearest power of 2

func NextPowerOfTwo

func NextPowerOfTwo(v int64) int64

func PrevPowerOfTwo

func PrevPowerOfTwo(v int64) int64

PrevPowerOfTwo returns the value of previous power of 2

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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