binaryutils

package
v0.0.0-...-32dd2ce Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BE16

func BE16(data []byte, index int) int

func BE32

func BE32(data []byte, index int) int

func ByteToBits

func ByteToBits(in byte) (out [8]uint8)

func CountOneBitsInWord

func CountOneBitsInWord(word int) int

func FourCharString

func FourCharString(data []byte, index int) string

func LE16

func LE16(data []byte, index int) int

func LE24

func LE24(data []byte, index int) int

func LE32

func LE32(data []byte, index int) int

func OneBitsInWord

func OneBitsInWord(word int) []int

func ReadXoredFile

func ReadXoredFile(fileName string, code byte) (out []byte, err error)

Types

type BitStream

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

func NewBitStream

func NewBitStream(data []byte) *BitStream

func (*BitStream) GetBit

func (b *BitStream) GetBit() uint8

func (*BitStream) GetBits

func (b *BitStream) GetBits(length uint8) (value uint8)

func (BitStream) IsEnd

func (b BitStream) IsEnd() bool

Jump to

Keyboard shortcuts

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