decode: function (diagnosticInfo, stream, options) { var encoding_mask = ec.decodeByte(stream); // read symbolic id if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.SymbolicId)) { diagnosticInfo.symbolicId = ec.decodeInt32(stream); } // read namespace uri if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.NamespaceUri)) { diagnosticInfo.namespaceUri = ec.decodeInt32(stream); } // read locale if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.Locale)) { diagnosticInfo.locale = ec.decodeInt32(stream); } // read localized text if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.LocalizedText)) { diagnosticInfo.localizedText = ec.decodeInt32(stream); } // read additional info if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.AdditionalInfo)) { diagnosticInfo.additionalInfo = ec.decodeString(stream); } // read inner status code if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.InnerStatusCode)) { diagnosticInfo.innerStatusCode = ec.decodeStatusCode(stream); } // read inner status code if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.InnerDiagnosticInfo)) { var DiagnosticInfo = require("../_generated_/_auto_generated_DiagnosticInfo").DiagnosticInfo; diagnosticInfo.innerDiagnosticInfo = new DiagnosticInfo({}); diagnosticInfo.innerDiagnosticInfo.decode(stream, options); } }
decode_debug: function (diagnosticInfo, stream, options) { var tracer = options.tracer; tracer.trace("start", options.name + "(" + "DiagnosticInfo" + ")", stream.length, stream.length); var cursor_before = stream.length; var encoding_mask = ec.decodeByte(stream); tracer.trace("member", "encodingByte", "0x" + encoding_mask.toString(16), cursor_before, stream.length, "Mask"); tracer.encoding_byte(encoding_mask,DiagnosticInfo_EncodingByte,cursor_before,stream.length); cursor_before = stream.length; // read symbolic id if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.SymbolicId)) { diagnosticInfo.symbolicId = ec.decodeInt32(stream); tracer.trace("member", "symbolicId", diagnosticInfo.symbolicId, cursor_before, stream.length, "Int32"); cursor_before = stream.length; } // read namespace uri if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.NamespaceUri)) { diagnosticInfo.namespaceUri = ec.decodeInt32(stream); tracer.trace("member", "symbolicId", diagnosticInfo.namespaceUri, cursor_before, stream.length, "Int32"); cursor_before = stream.length; } // read locale if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.Locale)) { diagnosticInfo.locale = ec.decodeInt32(stream); tracer.trace("member", "locale", diagnosticInfo.locale, cursor_before, stream.length, "Int32"); cursor_before = stream.length; } // read localized text if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.LocalizedText)) { diagnosticInfo.localizedText = ec.decodeInt32(stream); tracer.trace("member", "localizedText", diagnosticInfo.localizedText, cursor_before, stream.length, "Int32"); cursor_before = stream.length; } // read additional info if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.AdditionalInfo)) { diagnosticInfo.additionalInfo = ec.decodeString(stream); tracer.trace("member", "additionalInfo", diagnosticInfo.additionalInfo, cursor_before, stream.length, "String"); cursor_before = stream.length; } // read inner status code if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.InnerStatusCode)) { diagnosticInfo.innerStatusCode = ec.decodeStatusCode(stream); tracer.trace("member", "innerStatusCode", diagnosticInfo.innerStatusCode, cursor_before, stream.length, "StatusCode"); cursor_before = stream.length; } // read inner status code if (check_flag(encoding_mask, DiagnosticInfo_EncodingByte.InnerDiagnosticInfo)) { var DiagnosticInfo = require("../_generated_/_auto_generated_DiagnosticInfo").DiagnosticInfo; diagnosticInfo.innerDiagnosticInfo = new DiagnosticInfo({}); diagnosticInfo.innerDiagnosticInfo.decode_debug(stream, options); tracer.trace("member", "innerDiagnosticInfo", diagnosticInfo.innerDiagnosticInfo, cursor_before, stream.length, "DiagnosticInfo"); } tracer.trace("end", options.name, stream.length, stream.length); },