package custom
import "github.com/gogo/protobuf/test/custom"
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 NewPopulatedUint128(r randy) *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
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) Compare ¶
func (Uint128) Equal ¶
func (Uint128) Marshal ¶
func (Uint128) MarshalJSON ¶
func (Uint128) MarshalTo ¶
func (Uint128) Size ¶
func (*Uint128) Unmarshal ¶
func (*Uint128) UnmarshalJSON ¶
Source Files ¶
- Version
- v1.2.0
- Published
- Dec 11, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 days ago –
Tools for package owners.