xxh32

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package xxh32 is a pure-Go (no CGo) implementation of the XXH32 hash, used by Loro's Fast format for the header checksum and every KV/SSTable block and meta checksum. Loro's seed is 0x4F524F4C (little-endian bytes of "LORO").

Index

Constants

View Source
const Seed uint32 = 0x4F524F4C

Seed is the constant seed Loro uses everywhere: u32::from_le_bytes(*b"LORO").

Variables

This section is empty.

Functions

func Checksum

func Checksum(data []byte, seed uint32) uint32

Checksum returns the XXH32 of data with the given seed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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