zigzag

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode[T tdp.Number](raw T) T

Decode decodes a zigzag-encoded value of any type.

Calling DecodeZigZag does not work correctly when sign extension is involved.

func Decode64

func Decode64[T tdp.Number](raw uint64) T

Decode64 is a helper for calling zigzag with a raw 64-bit input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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