Documentation ¶
Overview ¶
Package custom contains custom types for test and example purposes. These types are used by the test structures generated by gogoprotobuf.
Index ¶
- func GetLittleEndianUint128(buffer []byte, offset int) (value [2]uint64)
- func GetLittleEndianUint64(b []byte, offset int) uint64
- func PutLittleEndianUint128(buffer []byte, offset int, v [2]uint64)
- func PutLittleEndianUint64(b []byte, offset int, v uint64)
- type Uint128
- func (this Uint128) Compare(that Uint128) int
- func (this Uint128) Equal(that Uint128) bool
- func (u Uint128) Marshal() ([]byte, error)
- func (u Uint128) MarshalJSON() ([]byte, error)
- func (u Uint128) MarshalTo(data []byte) (n int, err error)
- func (u Uint128) Size() int
- func (u *Uint128) Unmarshal(data []byte) error
- func (u *Uint128) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLittleEndianUint128 ¶
func GetLittleEndianUint64 ¶
func PutLittleEndianUint128 ¶
func PutLittleEndianUint64 ¶
Types ¶
type Uint128 ¶
type Uint128 [2]uint64
func NewPopulatedUint128 ¶
func NewPopulatedUint128(r randy) *Uint128
func (Uint128) MarshalJSON ¶
func (*Uint128) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.