private static string ToExternTypeString(ExternTypeEntity type) { if (type.Name.Value == "bytes") { return(string.Format("bytes[]")); } return(type.Name.Value); }
private static string ToExternTypeString(ExternTypeEntity type) { if (type.Name.Value == "bytes" || type.Name.Value == "string") { return("std::string"); } if (type.Name.Value == "int") { return("int32_t"); } if (type.Name.Value == "uint") { return("uint32_t"); } if (type.Name.Value == "long") { return("int64_t"); } if (type.Name.Value == "ulong") { return("uint64_t"); } return(type.Name.Value); }