utils

package
v0.0.0-...-b64095e Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCRC32c

func NewCRC32c() hash.Hash32

Hash32.Sum() returns in big-endian

Types

type Serial32

type Serial32 struct {
	// contains filtered or unexported fields
}

func MakeSerial32

func MakeSerial32(s uint32) Serial32

func (Serial32) Add

func (s Serial32) Add(n int) Serial32

Add n to s. n should be in range 0..2^31-1, or a panic will occur.

func (Serial32) Eq

func (s Serial32) Eq(t Serial32) bool

func (Serial32) GreaterThan

func (s Serial32) GreaterThan(t Serial32) bool

func (Serial32) LessThan

func (s Serial32) LessThan(t Serial32) bool

func (Serial32) ToUInt32

func (s Serial32) ToUInt32() uint32

Jump to

Keyboard shortcuts

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