custom - ActiveState ActiveGo 1.8

Package custom

import ""

Overview ▾

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

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)

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