hasedbuffer

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashedRingBuffer

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

func NewHashedBuffer

func NewHashedBuffer(size int) *HashedRingBuffer

func (HashedRingBuffer) Bytes

func (h HashedRingBuffer) Bytes() []byte

func (HashedRingBuffer) CheckSum

func (h HashedRingBuffer) CheckSum() []byte

func (HashedRingBuffer) CheckSumHex

func (h HashedRingBuffer) CheckSumHex() string

func (*HashedRingBuffer) ReadByte

func (h *HashedRingBuffer) ReadByte(input io.Reader) (byte, error)

Reads one byte from input

func (*HashedRingBuffer) ReadFull

func (h *HashedRingBuffer) ReadFull(input io.Reader) (int64, error)

Read the complete buffer from input, missing bytes are replaced by '0'

func (*HashedRingBuffer) ReadNFrom

func (h *HashedRingBuffer) ReadNFrom(input io.Reader, bytes int64) (int64, error)

func (HashedRingBuffer) RollingSum

func (h HashedRingBuffer) RollingSum() []byte

func (HashedRingBuffer) RollingSumHex

func (h HashedRingBuffer) RollingSumHex() string

func (*HashedRingBuffer) Write

func (h *HashedRingBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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