crcloc

package module
v0.0.0-...-71d5f6e Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

README

loc-crc

Create LOC CRC32 hash for samples/options

LOC Hashes

LOC hash is based off CRC32. It uses the IEEE polynomial for the table. Unlike standard CRC the starting CRC is not ^0 but just 0. The CRC calculation changes the bitwise right 8 operation to a bitwise left 8. This module uses as much as the standard CRC32 as possible.

Examples
String Hash
0 26D930AC
1 51DE003A
2 C8D75180
00 F99F065F
11 97830788
Hello World 219000BA

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufSize = 8192

Functions

func Decode

func Decode(input []byte) string

func DecodeIf

func DecodeIf(input []byte) (string, error)

func Encode

func Encode(input string) []byte

func Hash

func Hash(b []byte) string

func HashReader

func HashReader(r io.Reader) string

func Update

func Update(b []byte) uint32

func UpdateReader

func UpdateReader(r io.Reader) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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