x25

package
v0.0.0-...-4f9df97 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	Sum uint16
}

Warning: Works only on little endian systems

func MakeHash

func MakeHash() (hash Hash)

func NewHash

func NewHash() *Hash

func (*Hash) Reset

func (hash *Hash) Reset()

func (*Hash) Write

func (hash *Hash) Write(data []byte) (n int, err error)

func (*Hash) WriteByte

func (hash *Hash) WriteByte(data byte)

Warning: Works only on little endian systems

type HashedReader

type HashedReader struct {
	Hash Hash
	// contains filtered or unexported fields
}

func MakeHashedReader

func MakeHashedReader(reader io.Reader) HashedReader

func NewHashedReader

func NewHashedReader(reader io.Reader) *HashedReader

func (*HashedReader) Read

func (hr *HashedReader) Read(data []byte) (n int, err error)

type HashedWriter

type HashedWriter struct {
	Hash Hash
	// contains filtered or unexported fields
}

func MakeHashedWriter

func MakeHashedWriter(writer io.Writer) HashedWriter

func NewHashedWriter

func NewHashedWriter(writer io.Writer) *HashedWriter

func (*HashedWriter) Write

func (hw *HashedWriter) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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