Documentation ¶
Index ¶
- type HashedRingBuffer
- func (h HashedRingBuffer) Bytes() []byte
- func (h HashedRingBuffer) CheckSum() []byte
- func (h HashedRingBuffer) CheckSumHex() string
- func (h *HashedRingBuffer) ReadByte(input io.Reader) (byte, error)
- func (h *HashedRingBuffer) ReadFull(input io.Reader) (int64, error)
- func (h *HashedRingBuffer) ReadNFrom(input io.Reader, bytes int64) (int64, error)
- func (h HashedRingBuffer) RollingSum() []byte
- func (h HashedRingBuffer) RollingSumHex() string
- func (h *HashedRingBuffer) Write(p []byte) (n int, err error)
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) RollingSum ¶
func (h HashedRingBuffer) RollingSum() []byte
func (HashedRingBuffer) RollingSumHex ¶
func (h HashedRingBuffer) RollingSumHex() string
Click to show internal directories.
Click to hide internal directories.