Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 96) sorted by relevance

1234

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dc_service_driver_code_emitter.cpp62 StringBuilder sb; in EmitLowDriverSourceFile() local
64 EmitLicense(sb); in EmitLowDriverSourceFile()
65 sb.Append("\n"); in EmitLowDriverSourceFile()
66 EmitLowDriverInclusions(sb); in EmitLowDriverSourceFile()
67 sb.Append("\n"); in EmitLowDriverSourceFile()
68 EmitLogTagMacro(sb, FileName(baseName_ + "Driver")); in EmitLowDriverSourceFile()
69 sb.Append("\n"); in EmitLowDriverSourceFile()
70 EmitLowDriverBind(sb); in EmitLowDriverSourceFile()
71 sb.Append("\n"); in EmitLowDriverSourceFile()
72 EmitDriverInit(sb); in EmitLowDriverSourceFile()
[all …]
Dcpp_service_driver_code_emitter.cpp45 StringBuilder sb; in EmitDriverSourceFile() local
47 EmitLicense(sb); in EmitDriverSourceFile()
48 EmitDriverInclusions(sb); in EmitDriverSourceFile()
49 sb.Append("\n"); in EmitDriverSourceFile()
50 EmitLogTagMacro(sb, FileName(baseName_ + "Driver")); in EmitDriverSourceFile()
51 sb.Append("\n"); in EmitDriverSourceFile()
52 EmitDriverUsings(sb); in EmitDriverSourceFile()
53 sb.Append("\n"); in EmitDriverSourceFile()
54 EmitDriverServiceDecl(sb); in EmitDriverSourceFile()
55 sb.Append("\n"); in EmitDriverSourceFile()
[all …]
Dc_interface_code_emitter.cpp54 StringBuilder sb; in EmitLowModeInterfaceHeaderFile() local
56 EmitLicense(sb); in EmitLowModeInterfaceHeaderFile()
57 EmitHeadMacro(sb, interfaceFullName_); in EmitLowModeInterfaceHeaderFile()
58 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile()
59 EmitImportInclusions(sb); in EmitLowModeInterfaceHeaderFile()
60 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile()
61 EmitHeadExternC(sb); in EmitLowModeInterfaceHeaderFile()
62 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile()
63 EmitInterfaceVersionMacro(sb); in EmitLowModeInterfaceHeaderFile()
65 sb.Append("\n"); in EmitLowModeInterfaceHeaderFile()
[all …]
Dc_client_proxy_code_emitter.cpp55 StringBuilder sb; in EmitPassthroughProxySourceFile() local
57 EmitLicense(sb); in EmitPassthroughProxySourceFile()
58 EmitPassthroughProxyInclusions(sb); in EmitPassthroughProxySourceFile()
59 sb.Append("\n"); in EmitPassthroughProxySourceFile()
60 EmitLogTagMacro(sb, FileName(proxyName_)); in EmitPassthroughProxySourceFile()
61 sb.Append("\n"); in EmitPassthroughProxySourceFile()
62 EmitProxyGetMethodImpl(sb); in EmitPassthroughProxySourceFile()
63 sb.Append("\n"); in EmitPassthroughProxySourceFile()
64 EmitPassthroughGetInstanceMethod(sb); in EmitPassthroughProxySourceFile()
65 sb.Append("\n"); in EmitPassthroughProxySourceFile()
[all …]
Dc_service_impl_code_emitter.cpp62 StringBuilder sb; in EmitLowServiceImplHeaderFile() local
64 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
65 EmitLicense(sb); in EmitLowServiceImplHeaderFile()
66 EmitHeadMacro(sb, implFullName_); in EmitLowServiceImplHeaderFile()
67 EmitLowServiceImplInclusions(sb); in EmitLowServiceImplHeaderFile()
68 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
69 EmitHeadExternC(sb); in EmitLowServiceImplHeaderFile()
70 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
71 EmitLowServiceImplDefinition(sb); in EmitLowServiceImplHeaderFile()
72 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
[all …]
Dc_service_stub_code_emitter.cpp51 StringBuilder sb; in EmitServiceStubHeaderFile() local
53 EmitLicense(sb); in EmitServiceStubHeaderFile()
54 EmitHeadMacro(sb, stubFullName_); in EmitServiceStubHeaderFile()
55 sb.Append("\n"); in EmitServiceStubHeaderFile()
56 EmitStubHeaderInclusions(sb); in EmitServiceStubHeaderFile()
57 sb.Append("\n"); in EmitServiceStubHeaderFile()
58 EmitHeadExternC(sb); in EmitServiceStubHeaderFile()
59 sb.Append("\n"); in EmitServiceStubHeaderFile()
60 EmitCbServiceStubDef(sb); in EmitServiceStubHeaderFile()
62 sb.Append("\n"); in EmitServiceStubHeaderFile()
[all …]
Djava_client_proxy_code_emitter.cpp42 StringBuilder sb; in EmitProxyFile() local
44 EmitLicense(sb); in EmitProxyFile()
45 EmitPackage(sb); in EmitProxyFile()
46 sb.Append("\n"); in EmitProxyFile()
47 EmitProxyImports(sb); in EmitProxyFile()
48 sb.Append("\n"); in EmitProxyFile()
49 EmitProxyImpl(sb); in EmitProxyFile()
51 std::string data = sb.ToString(); in EmitProxyFile()
57 void JavaClientProxyCodeEmitter::EmitProxyImports(StringBuilder &sb) const in EmitProxyImports()
59 EmitProxyCorelibImports(sb); in EmitProxyImports()
[all …]
Dc_custom_types_code_emitter.cpp55 StringBuilder sb; in EmitPassthroughCustomTypesHeaderFile() local
57 EmitLicense(sb); in EmitPassthroughCustomTypesHeaderFile()
58 EmitHeadMacro(sb, baseName_); in EmitPassthroughCustomTypesHeaderFile()
59 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
60 EmitPassthroughHeaderInclusions(sb); in EmitPassthroughCustomTypesHeaderFile()
61 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
62 EmitHeadExternC(sb); in EmitPassthroughCustomTypesHeaderFile()
63 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
64 EmitCustomTypeDecls(sb); in EmitPassthroughCustomTypesHeaderFile()
65 EmitTailExternC(sb); in EmitPassthroughCustomTypesHeaderFile()
[all …]
Dcpp_custom_types_code_emitter.cpp52 StringBuilder sb; in EmitPassthroughCustomTypesHeaderFile() local
54 EmitLicense(sb); in EmitPassthroughCustomTypesHeaderFile()
55 EmitHeadMacro(sb, marcoName); in EmitPassthroughCustomTypesHeaderFile()
56 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
57 EmitPassthroughHeaderFileInclusions(sb); in EmitPassthroughCustomTypesHeaderFile()
58 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
59 EmitBeginNamespace(sb); in EmitPassthroughCustomTypesHeaderFile()
60 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
61 EmitUsingNamespace(sb); in EmitPassthroughCustomTypesHeaderFile()
62 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
[all …]
Dcpp_interface_code_emitter.cpp49 StringBuilder sb; in EmitInterfaceHeaderFile() local
51 EmitLicense(sb); in EmitInterfaceHeaderFile()
52 EmitHeadMacro(sb, interfaceFullName_); in EmitInterfaceHeaderFile()
53 sb.Append("\n"); in EmitInterfaceHeaderFile()
54 EmitInterfaceInclusions(sb); in EmitInterfaceHeaderFile()
56 sb.Append("\n"); in EmitInterfaceHeaderFile()
57 EmitInterfaceBuffSizeMacro(sb); in EmitInterfaceHeaderFile()
59 sb.Append("\n"); in EmitInterfaceHeaderFile()
60 EmitBeginNamespace(sb); in EmitInterfaceHeaderFile()
61 EmitUsingNamespace(sb); in EmitInterfaceHeaderFile()
[all …]
Dcpp_service_stub_code_emitter.cpp44 StringBuilder sb; in EmitStubHeaderFile() local
46 EmitLicense(sb); in EmitStubHeaderFile()
47 EmitHeadMacro(sb, stubFullName_); in EmitStubHeaderFile()
48 sb.Append("\n"); in EmitStubHeaderFile()
49 EmitStubHeaderInclusions(sb); in EmitStubHeaderFile()
50 sb.Append("\n"); in EmitStubHeaderFile()
51 EmitStubDecl(sb); in EmitStubHeaderFile()
52 sb.Append("\n"); in EmitStubHeaderFile()
53 EmitTailMacro(sb, stubFullName_); in EmitStubHeaderFile()
55 std::string data = sb.ToString(); in EmitStubHeaderFile()
[all …]
Dcpp_client_proxy_code_emitter.cpp54 StringBuilder sb; in EmitProxyHeaderFile() local
56 EmitLicense(sb); in EmitProxyHeaderFile()
57 EmitHeadMacro(sb, proxyFullName_); in EmitProxyHeaderFile()
58 sb.Append("\n"); in EmitProxyHeaderFile()
59 EmitProxyHeaderInclusions(sb); in EmitProxyHeaderFile()
60 sb.Append("\n"); in EmitProxyHeaderFile()
61 EmitBeginNamespace(sb); in EmitProxyHeaderFile()
62 sb.Append("\n"); in EmitProxyHeaderFile()
63 EmitProxyDecl(sb, ""); in EmitProxyHeaderFile()
64 sb.Append("\n"); in EmitProxyHeaderFile()
[all …]
Dcpp_service_impl_code_emitter.cpp50 StringBuilder sb; in EmitImplHeaderFile() local
52 EmitLicense(sb); in EmitImplHeaderFile()
53 EmitHeadMacro(sb, implFullName_); in EmitImplHeaderFile()
54 sb.Append("\n"); in EmitImplHeaderFile()
55 EmitServiceImplInclusions(sb); in EmitImplHeaderFile()
56 sb.Append("\n"); in EmitImplHeaderFile()
57 EmitServiceImplDecl(sb); in EmitImplHeaderFile()
58 sb.Append("\n"); in EmitImplHeaderFile()
59 EmitTailMacro(sb, implFullName_); in EmitImplHeaderFile()
61 std::string data = sb.ToString(); in EmitImplHeaderFile()
[all …]
Djava_client_interface_code_emitter.cpp43 StringBuilder sb; in EmitInterfaceFile() local
45 EmitLicense(sb); in EmitInterfaceFile()
46 EmitPackage(sb); in EmitInterfaceFile()
47 sb.Append("\n"); in EmitInterfaceFile()
48 EmitInterfaceImports(sb); in EmitInterfaceFile()
49 sb.Append("\n"); in EmitInterfaceFile()
50 EmitInterfaceDefinition(sb); in EmitInterfaceFile()
52 std::string data = sb.ToString(); in EmitInterfaceFile()
58 void JavaClientInterfaceCodeEmitter::EmitInterfaceImports(StringBuilder &sb) const in EmitInterfaceImports()
60 EmitInterfaceCorelibImports(sb); in EmitInterfaceImports()
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_array_type.cpp83 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
87sb.Append(prefix).AppendFormat("if (!WritePodArray(%s, %s, sizeof(%s), %s)) {\n", parcelName.c_str… in EmitCWriteVar()
89 sb.Append(prefix + TAB) in EmitCWriteVar()
91 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
92 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
93 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
96 sb.Append(prefix).AppendFormat( in EmitCWriteVar()
98 sb.Append(prefix + TAB) in EmitCWriteVar()
100 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
101 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
[all …]
Dast_fd_type.cpp66 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
68sb.Append(prefix).AppendFormat("if (!WriteFileDescriptor(%s, %s)) {\n", parcelName.c_str(), name.c… in EmitCWriteVar()
69sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
76 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument
79sb.Append(prefix).AppendFormat("if (!ReadFileDescriptor(%s, &%s)) {\n", parcelName.c_str(), name.c… in EmitCProxyReadVar()
81sb.Append(prefix).AppendFormat("if (!ReadFileDescriptor(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCProxyReadVar()
83sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
[all …]
Dast_string_type.cpp66 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
68sb.Append(prefix).AppendFormat("if (!HdfSbufWriteString(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
69sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
76 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyWriteOutVar() argument
79 sb.Append(prefix).AppendFormat("if (%s == NULL || %s == 0) {\n", name.c_str(), lenName.c_str()); in EmitCProxyWriteOutVar()
80sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: %s is invalid\", __func__);\n", name… in EmitCProxyWriteOutVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyWriteOutVar()
[all …]
Dast_union_type.cpp32 StringBuilder sb; in Dump() local
33 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
34 sb.AppendFormat("union %s {\n", name_.c_str()); in Dump()
37 sb.Append(prefix + " "); in Dump()
38sb.AppendFormat("%s %s;\n", std::get<1>(it)->ToString().c_str(), std::get<0>(it).c_str()); in Dump()
41 sb.Append(prefix).Append("};\n"); in Dump()
42 return sb.ToString(); in Dump()
90 StringBuilder sb; in EmitCTypeDecl() local
91 sb.AppendFormat("union %s {\n", name_.c_str()); in EmitCTypeDecl()
96 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl()
[all …]
Dast_native_buffer_type.cpp61 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCWriteVar() argument
63sb.Append(prefix).AppendFormat("if (!HdfSbufWriteNativeBufferHandle(%s, %s)) {\n", parcelName.c_st… in EmitCWriteVar()
65sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: failed to write %s\", __func__);\n",… in EmitCWriteVar()
66 sb.Append(prefix + TAB).Append("return HDF_ERR_INVALID_PARAM;\n"); in EmitCWriteVar()
67 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
71 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument
73 sb.Append(prefix); in EmitCProxyReadVar()
75 sb.Append("*"); in EmitCProxyReadVar()
77 sb.AppendFormat("%s = HdfSbufReadNativeBufferHandle(%s);\n", name.c_str(), parcelName.c_str()); in EmitCProxyReadVar()
78 sb.Append(prefix).AppendFormat("if (%s == NULL) {\n", name.c_str()); in EmitCProxyReadVar()
[all …]
Dast_struct_type.cpp35 StringBuilder sb; in Dump() local
36 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
37 sb.AppendFormat("struct %s {\n", name_.c_str()); in Dump()
40 sb.Append(prefix + " "); in Dump()
41sb.AppendFormat("%s %s;\n", std::get<1>(it)->ToString().c_str(), std::get<0>(it).c_str()); in Dump()
44 sb.Append(prefix).Append("};\n"); in Dump()
45 return sb.ToString(); in Dump()
93 StringBuilder sb; in EmitCTypeDecl() local
94 sb.AppendFormat("struct %s {\n", name_.c_str()); in EmitCTypeDecl()
99 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl()
[all …]
Dast_enum_type.cpp34 StringBuilder sb; in Dump() local
35 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
37 sb.AppendFormat("enum %s : %s {\n", name_.c_str(), baseType_->ToString().c_str()); in Dump()
39 sb.AppendFormat("enum %s {\n", name_.c_str()); in Dump()
46 sb.Append(" ").AppendFormat("%s,\n", it->GetName().c_str()); in Dump()
48sb.Append(" ").AppendFormat("%s = %s,\n", it->GetName().c_str(), value->Dump("").c_str()); in Dump()
53 sb.Append(prefix).Append("};\n"); in Dump()
55 return sb.ToString(); in Dump()
103 StringBuilder sb; in EmitCTypeDecl() local
104 sb.AppendFormat("enum %s {\n", name_.c_str()); in EmitCTypeDecl()
[all …]
Dast_ulong_type.cpp67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
69sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint64(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
70sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument
79sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint64(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
80sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
[all …]
Dast_uchar_type.cpp67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
69sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint8(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCWriteVar()
70sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument
79sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint8(%s, %s)) {\n", parcelName.c_str(), name.c_st… in EmitCProxyReadVar()
80sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
[all …]
Dast_ushort_type.cpp67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
69sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint16(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
70sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument
79sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint16(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
80sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
[all …]
Dast_uint_type.cpp67 const std::string &gotoLabel, StringBuilder &sb, const std::string &prefix) const in EmitCWriteVar() argument
69sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint32(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
70sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
77 …const std::string &ecName, const std::string &gotoLabel, StringBuilder &sb, const std::string &pre… in EmitCProxyReadVar() argument
79sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint32(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
80sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
[all …]

1234