MLAPI.Serialization.Arithmetic
Arithmetic helper class
#
Inherited MembersObject.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
#
Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
Methods#
VarIntSize(UInt64)Gets the output size in bytes after VarInting a unsigned integer
#
Declaration#
ParametersType | Name | Description |
---|---|---|
System.UInt64 | value | The unsigned integer whose length to get |
#
ReturnsType | Description |
---|---|
System.Int32 | The amount of bytes |
#
ZigZagDecode(UInt64)Decides a ZigZag encoded integer back to a signed integer
#
Declaration#
ParametersType | Name | Description |
---|---|---|
System.UInt64 | value | The unsigned integer |
#
ReturnsType | Description |
---|---|
System.Int64 | The signed version of the integer |
#
ZigZagEncode(Int64)ZigZag encodes a signed integer and maps it to a unsigned integer
#
Declaration#
ParametersType | Name | Description |
---|---|---|
System.Int64 | value | The signed integer to encode |
#
ReturnsType | Description |
---|---|
System.UInt64 | A ZigZag encoded version of the integer |