bigbigendian

package
v0.0.0-...-ae747ca Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 2 Imported by: 6

Documentation

Overview

Serializes and deserializes big ints using two's complement big endian representation

Index

Constants

View Source
const MaxSize = 128

The maximum size (in bytes) of serialized representation we support

Variables

This section is empty.

Functions

func DeserializeSigned

func DeserializeSigned(size int, b []byte) (*big.Int, error)

Deserializes a byte slice with size bytes into a signed big.Int. Does not mutate its inputs. Does not panic.

func SerializeSigned

func SerializeSigned(size int, i *big.Int) ([]byte, error)

Serializes a signed big.Int into a byte slice with size bytes. Does not mutate its inputs. Does not panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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