T_forward method
Implementation
Uint8List T_forward() {
List<int> t_bytes = [];
t_bytes.addAll(leb128.encodeSigned(Vector.type_code));
if (this.values_type == null && this.length == 0) {
throw Exception('candid cannot conclude the type of the items in this vector. candid c_forward needs a vector-values-type to serialize a Vector. either put a candidtype in this vector .add(Nat(548)) . or if you want the vector to be empty, give a values_type-param when creating this vector. Vector(values_type: Int64()/Text()/...)');
}
Uint8List values_type_t_forward_bytes = this.values_type != null ? this.values_type!.T_forward() : this[0].T_forward();
t_bytes.addAll(values_type_t_forward_bytes);
int type_table_i = put_t_in_the_type_table_forward(t_bytes);
return leb128.encodeSigned(type_table_i);
}