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 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址