Documentation ¶
Index ¶
- type CallId
- func (f CallId) Equal(other CallId) bool
- func (f CallId) High() uint64
- func (f CallId) IsEmptyValue() bool
- func (f CallId) IsZeroOrEmptyValue() bool
- func (f CallId) IsZeroValue() bool
- func (f CallId) Low() uint64
- func (f CallId) Marshal() *protosupport.IdRaw
- func (f CallId) Short() string
- func (f CallId) String() string
- type DefCall
- type DefHost
- type DefMethod
- type DefService
- type HostId
- func (f HostId) Equal(other HostId) bool
- func (f HostId) High() uint64
- func (f HostId) IsEmptyValue() bool
- func (f HostId) IsZeroOrEmptyValue() bool
- func (f HostId) IsZeroValue() bool
- func (f HostId) Low() uint64
- func (f HostId) Marshal() *protosupport.IdRaw
- func (f HostId) Short() string
- func (f HostId) String() string
- type IdRoot
- func (i IdRoot[T]) Equal(other IdRoot[T]) bool
- func (i IdRoot[T]) High() uint64
- func (i IdRoot[T]) IsEmptyValue() bool
- func (i IdRoot[T]) IsZeroOrEmptyValue() bool
- func (i IdRoot[T]) IsZeroValue() bool
- func (i IdRoot[T]) Low() uint64
- func (i IdRoot[T]) Short() string
- func (i IdRoot[T]) String() string
- func (i IdRoot[V]) WriteGuestLe(mem api.Memory, offset uint32) bool
- type MethodId
- func (f MethodId) Equal(other MethodId) bool
- func (f MethodId) High() uint64
- func (f MethodId) IsEmptyValue() bool
- func (f MethodId) IsZeroOrEmptyValue() bool
- func (f MethodId) IsZeroValue() bool
- func (f MethodId) Low() uint64
- func (f MethodId) Marshal() *protosupport.IdRaw
- func (f MethodId) Short() string
- func (f MethodId) String() string
- type NameInfo
- type ServiceId
- func (f ServiceId) Equal(other ServiceId) bool
- func (f ServiceId) High() uint64
- func (f ServiceId) IsEmptyValue() bool
- func (f ServiceId) IsZeroOrEmptyValue() bool
- func (f ServiceId) IsZeroValue() bool
- func (f ServiceId) Low() uint64
- func (f ServiceId) Marshal() *protosupport.IdRaw
- func (f ServiceId) Short() string
- func (f ServiceId) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallId ¶
func CallIdEmptyValue ¶
func CallIdEmptyValue() CallId
func CallIdFromPair ¶
FromPair is probably not something you want to use unless you are pulling values from external storage or files. If you pulling values from the network, use the Marshal() ad Unmarshal() functions to work with Ids. Absolutely no checking is done on the values provided, so much caution is advised.
func CallIdZeroValue ¶
func CallIdZeroValue() CallId
func UnmarshalCallId ¶
func UnmarshalCallId(b *protosupport.IdRaw) CallId
func (CallId) IsEmptyValue ¶
func (CallId) IsZeroOrEmptyValue ¶
func (CallId) IsZeroValue ¶
func (CallId) Marshal ¶
func (f CallId) Marshal() *protosupport.IdRaw
type DefService ¶
type DefService struct{}
func (DefService) Letter ¶
func (f DefService) Letter() byte
func (DefService) ShortString ¶
func (f DefService) ShortString() string
type HostId ¶
func HostIdEmptyValue ¶
func HostIdEmptyValue() HostId
func HostIdFromPair ¶
FromPair is probably not something you want to use unless you are pulling values from external storage or files. If you pulling values from the network, use the Marshal() ad Unmarshal() functions to work with Ids. Absolutely no checking is done on the values provided, so much caution is advised.
func HostIdZeroValue ¶
func HostIdZeroValue() HostId
func UnmarshalHostId ¶
func UnmarshalHostId(b *protosupport.IdRaw) HostId
func (HostId) IsEmptyValue ¶
func (HostId) IsZeroOrEmptyValue ¶
func (HostId) IsZeroValue ¶
func (HostId) Marshal ¶
func (f HostId) Marshal() *protosupport.IdRaw
type IdRoot ¶
type IdRoot[T NameInfo] struct { // contains filtered or unexported fields }
IdRoot[T] is used to indicate an id in parigot. This type is usually "covered up" by generated code that will given it a name lile FileId or QueueId so these types cannot be compared for equality, assigned to each other, and similar, despite being the same underlying type.
func NewIdTyped ¶
NewIdType is dangerous in that it performs no checks about the validity of the data provided. Its use is discouraged. It will obey the values provided by the T type parameter regarding the high order byte, even if this value is provided in h.
func ZeroValue ¶
ZeroValue is a special value of an id. Thes should be returned when an Id should not be used, such as when an error is also returned from a function. Note that the zero value is not the same as the empty value.
func (IdRoot[T]) Equal ¶
Equal will compare two ids for equality. At this level it can compare _any_ two ids, but most users will be using generated code that disallows comparisons between id types. Note that the empty value and the zero value are not equal to anything, including each other.
func (IdRoot[T]) High ¶
Use of High() is not recommended for user code. It returns the high 8 bytes of the 128bit id.
func (IdRoot[T]) IsEmptyValue ¶
IsEmptyValue tells you if the given id is actually just full of zeros in the 15 data bytes. This almost means that the caller gave you a bad id, since the chance of all 15 data bytes being zero is very low, and vastly lower than somebody forgetting to initialize a value.
func (IdRoot[T]) IsZeroOrEmptyValue ¶
func (IdRoot[T]) IsZeroValue ¶
IsZeroValue checks an id value to see if it is the bit pattern of the zero value.
func (IdRoot[T]) Low ¶
Use of Low() is not recommended for user code. It returns the low 8 bytes of the 128bit id.
func (IdRoot[T]) Short ¶
Short returns a short string representing this value. Strings returned represent the low order 16 bits of the this Id. However, for debugging, this amount data is enough to uniquely identify a particular id. If you want to see the entire 120 bits, then use String().
func (IdRoot[T]) String ¶
String() returns a string that contains the short string name of this id (like "file" or "queue") and then 5 groups of numbers. From left to right these are bytes[4-6] of the high part, bytes[0-3] of the high part, bytes [4-7] of the low part, bytes[2-3] of the low part, and then low order two bytes of the low part. The low part is printed this way so the last section of the string match the portion of the id printed by Short()
type MethodId ¶
func MethodIdEmptyValue ¶
func MethodIdEmptyValue() MethodId
func MethodIdFromPair ¶
FromPair is probably not something you want to use unless you are pulling values from external storage or files. If you pulling values from the network, use the Marshal() ad Unmarshal() functions to work with Ids. Absolutely no checking is done on the values provided, so much caution is advised.
func MethodIdZeroValue ¶
func MethodIdZeroValue() MethodId
func NewMethodId ¶
func NewMethodId() MethodId
func UnmarshalMethodId ¶
func UnmarshalMethodId(b *protosupport.IdRaw) MethodId
func (MethodId) IsEmptyValue ¶
func (MethodId) IsZeroOrEmptyValue ¶
func (MethodId) IsZeroValue ¶
func (MethodId) Marshal ¶
func (f MethodId) Marshal() *protosupport.IdRaw
type ServiceId ¶
type ServiceId IdRoot[DefService]
func NewServiceId ¶
func NewServiceId() ServiceId
func ServiceIdEmptyValue ¶
func ServiceIdEmptyValue() ServiceId
func ServiceIdFromPair ¶
FromPair is probably not something you want to use unless you are pulling values from external storage or files. If you pulling values from the network, use the Marshal() ad Unmarshal() functions to work with Ids. Absolutely no checking is done on the values provided, so much caution is advised.
func ServiceIdZeroValue ¶
func ServiceIdZeroValue() ServiceId
func UnmarshalServiceId ¶
func UnmarshalServiceId(b *protosupport.IdRaw) ServiceId
func (ServiceId) IsEmptyValue ¶
func (ServiceId) IsZeroOrEmptyValue ¶
func (ServiceId) IsZeroValue ¶
func (ServiceId) Marshal ¶
func (f ServiceId) Marshal() *protosupport.IdRaw