1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

updated func and tonlib

This commit is contained in:
ton 2020-02-15 20:03:17 +04:00
parent 493ae2410c
commit a73d202ba2
50 changed files with 1340 additions and 271 deletions

View file

@ -34,7 +34,8 @@ int TD_TL_writer_java::get_max_arity() const {
bool TD_TL_writer_java::is_built_in_simple_type(const std::string &name) const {
return name == "Bool" || name == "Int32" || name == "Int53" || name == "Int64" || name == "Double" ||
name == "String" || name == "Bytes" || name == "SecureString" || name == "SecureBytes";
name == "String" || name == "Bytes" || name == "SecureString" || name == "SecureBytes" || name == "Object" ||
name == "Function";
}
bool TD_TL_writer_java::is_built_in_complex_type(const std::string &name) const {
@ -168,6 +169,12 @@ std::string TD_TL_writer_java::gen_type_name(const tl::tl_tree_type *tree_type)
if (name == "Bytes" || name == "SecureBytes") {
return "byte[]";
}
if (name == "Object") {
return gen_base_type_class_name(0);
}
if (name == "Function") {
return gen_base_function_class_name();
}
if (name == "Vector") {
assert(t->arity == 1);