Class Serializer
- Namespace
- Aptos
- Assembly
- Aptos.dll
- Inheritance
-
Serializer
- Inherited Members
-
Constructors
Serializer()
Methods
Bool(bool)
Parameters
v
bool
Bytes(byte[])
public void Bytes(byte[] v)
Parameters
v
byte[]
FixedBytes(byte[])
public void FixedBytes(byte[] v)
Parameters
v
byte[]
OptionString(string?)
public void OptionString(string? v)
Parameters
v
string
Option<T>(T?)
public void Option<T>(T? v) where T : Serializable
Parameters
v
T
Type Parameters
T
Reset()
Serialize(Serializable)
public void Serialize(Serializable v)
Parameters
v
Serializable
Serialize(bool)
public void Serialize(bool v)
Parameters
v
bool
Serialize(byte)
public void Serialize(byte v)
Parameters
v
byte
Serialize(ushort)
public void Serialize(ushort v)
Parameters
v
ushort
Serialize(uint)
public void Serialize(uint v)
Parameters
v
uint
Serialize(ulong)
public void Serialize(ulong v)
Parameters
v
ulong
Serialize<T>(List<T>)
public void Serialize<T>(List<T> v) where T : Serializable
Parameters
v
List<T>
Type Parameters
T
String(string)
public void String(string v)
Parameters
v
string
ToBytes()
Returns
- byte[]
U128(BigInteger)
public void U128(BigInteger v)
Parameters
v
BigInteger
U16(ushort)
public void U16(ushort v)
Parameters
v
ushort
U256(BigInteger)
public void U256(BigInteger v)
Parameters
v
BigInteger
U32(uint)
Parameters
v
uint
U32AsUleb128(uint)
public void U32AsUleb128(uint v)
Parameters
v
uint
U64(ulong)
Parameters
v
ulong
U8(byte)
Parameters
v
byte
Vector<T>(List<T>)
public void Vector<T>(List<T> v) where T : Serializable
Parameters
v
List<T>
Type Parameters
T
Vector<T>(List<T>, Action<T>)
public void Vector<T>(List<T> v, Action<T> serializerFunc)
Parameters
v
List<T>
serializerFunc
Action<T>
Type Parameters
T
Vector<T>(T[])
public void Vector<T>(T[] v) where T : Serializable
Parameters
v
T[]
Type Parameters
T
Vector<T>(T[], Action<T>)
public void Vector<T>(T[] v, Action<T> serializerFunc)
Parameters
v
T[]
serializerFunc
Action<T>
Type Parameters
T