Class Deserializer
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class Deserializer
- Inheritance
-
Deserializer
- Inherited Members
-
Constructors
Deserializer(byte[])
public Deserializer(byte[] data)
Parameters
data
byte[]
Deserializer(string)
public Deserializer(string data)
Parameters
data
string
Methods
Bool()
Returns
- bool
Bytes()
Returns
- byte[]
Deserialize<T>(Deserializable<T>)
public T Deserialize<T>(Deserializable<T> cls)
Parameters
cls
Deserializable<T>
Returns
- T
Type Parameters
T
FixedBytes(int)
public byte[] FixedBytes(int length)
Parameters
length
int
Returns
- byte[]
OptionString()
public string? OptionString()
Returns
- string
Option<T>(Func<Deserializer, T>)
public T? Option<T>(Func<Deserializer, T> deserializeFunc) where T : class
Parameters
deserializeFunc
Func<Deserializer, T>
Returns
- T
Type Parameters
T
Read(int)
public byte[] Read(int length)
Parameters
length
int
Returns
- byte[]
Remaining()
Returns
- long
String()
Returns
- string
U128()
Returns
- BigInteger
U16()
Returns
- ushort
U256()
Returns
- BigInteger
U32()
Returns
- uint
U64()
Returns
- ulong
U8()
Returns
- byte
Uleb128AsU32()
public uint Uleb128AsU32()
Returns
- uint
Vector<T>(Func<Deserializer, T>)
public List<T> Vector<T>(Func<Deserializer, T> deserializeFunc)
Parameters
deserializeFunc
Func<Deserializer, T>
Returns
- List<T>
Type Parameters
T