custom

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package custom contains custom types for test and example purposes. These types are used by the test structures generated by gogoprotobuf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLittleEndianUint128

func GetLittleEndianUint128(buffer []byte, offset int) (value [2]uint64)

func GetLittleEndianUint64

func GetLittleEndianUint64(b []byte, offset int) uint64

func PutLittleEndianUint128

func PutLittleEndianUint128(buffer []byte, offset int, v [2]uint64)

func PutLittleEndianUint64

func PutLittleEndianUint64(b []byte, offset int, v uint64)

Types

type Uint128

type Uint128 [2]uint64

func NewPopulatedUint128

func NewPopulatedUint128(r randy) *Uint128

func (Uint128) Compare

func (this Uint128) Compare(that Uint128) int

func (Uint128) Equal

func (this Uint128) Equal(that Uint128) bool

func (Uint128) Marshal

func (u Uint128) Marshal() ([]byte, error)

func (Uint128) MarshalJSON

func (u Uint128) MarshalJSON() ([]byte, error)

func (Uint128) MarshalTo

func (u Uint128) MarshalTo(data []byte) (n int, err error)

func (Uint128) Size

func (u Uint128) Size() int

func (*Uint128) Unmarshal

func (u *Uint128) Unmarshal(data []byte) error

func (*Uint128) UnmarshalJSON

func (u *Uint128) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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