phocus_crc

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Zlib Imports: 2 Imported by: 2

README

Worklow Status

phocus_crc

Documentation

Overview

Package phocus_crc contains all the dependencies and functions for calculating and verifying checksums.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(input string) (uint16, error)

Checksum takes an input string and returns the crc for that string.

func Encode

func Encode(input string) (string, error)

Encode takes an input string and returns that same string with it's crc attached.

func Verify

func Verify(input string) (bool, error)

Verify requires an input string with the crc attached and will return whether the crc matches the content.

Returns an error if the crc can't be detached or if another component returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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