Table of Contents

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()

public bool Bool()

Returns

bool

Bytes()

public byte[] 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()

public long Remaining()

Returns

long

String()

public string String()

Returns

string

U128()

public BigInteger U128()

Returns

BigInteger

U16()

public ushort U16()

Returns

ushort

U256()

public BigInteger U256()

Returns

BigInteger

U32()

public uint U32()

Returns

uint

U64()

public ulong U64()

Returns

ulong

U8()

public byte 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