impl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package impl contains implementations of the crcutil.Impl interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl16

type Impl16[T Word] struct{}

func (Impl16[T]) Append

func (impl Impl16[T]) Append(in []byte, crc T) []byte

func (Impl16[T]) Update

func (impl Impl16[T]) Update(crc T, tab []T, p []byte) T

type Impl16LSBitFirst

type Impl16LSBitFirst[T Word] struct{}

func (Impl16LSBitFirst[T]) Append

func (impl Impl16LSBitFirst[T]) Append(in []byte, crc T) []byte

func (Impl16LSBitFirst[T]) Update

func (impl Impl16LSBitFirst[T]) Update(crc T, tab []T, p []byte) T

type Impl32

type Impl32[T Word] struct{}

func (Impl32[T]) Append

func (impl Impl32[T]) Append(in []byte, crc T) []byte

func (Impl32[T]) Update

func (impl Impl32[T]) Update(crc T, tab []T, p []byte) T

type Impl32LSBitFirst

type Impl32LSBitFirst[T Word] struct{ Impl16LSBitFirst[T] }

func (Impl32LSBitFirst[T]) Append

func (impl Impl32LSBitFirst[T]) Append(in []byte, crc T) []byte

type Impl8

type Impl8[T Word] struct{}

func (Impl8[T]) Append

func (impl Impl8[T]) Append(in []byte, crc T) []byte

func (Impl8[T]) Update

func (impl Impl8[T]) Update(crc T, tab []T, p []byte) T

type Word

type Word interface {
	uint8 | uint16 | uint32
}

Jump to

Keyboard shortcuts

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