ids

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(str string) (int64, error)

func DecodeOld

func DecodeOld(str string) (int64, error)

func Encode

func Encode(id int64) string

func EncodeOld

func EncodeOld(id int64) string

Types

type ByteDecoder

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

func NewDecoder

func NewDecoder(b io.ByteReader) *ByteDecoder

func (*ByteDecoder) ReadInt32

func (d *ByteDecoder) ReadInt32() (val int32, ok bool)

func (*ByteDecoder) ReadInt64

func (d *ByteDecoder) ReadInt64() (val int64, ok bool)

type ByteEncoder

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

func (*ByteEncoder) AppendInt32

func (b *ByteEncoder) AppendInt32(val int32)

func (*ByteEncoder) AppendInt64

func (b *ByteEncoder) AppendInt64(val int64)

func (*ByteEncoder) Bytes

func (b *ByteEncoder) Bytes() []byte

func (*ByteEncoder) Mark

func (b *ByteEncoder) Mark()

Jump to

Keyboard shortcuts

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