protected virtual void DecompileFields(IDecompiler decompiler, IDecompilerOutput output) { foreach (var vm in HexVMs) { decompiler.WriteCommentLine(output, string.Empty); decompiler.WriteCommentLine(output, string.Format("{0}:", vm.Name)); foreach (var field in vm.HexFields) decompiler.WriteCommentLine(output, string.Format("{0:X8} - {1:X8} {2} = {3}", field.Span.Start.ToUInt64(), field.Span.End.ToUInt64() - 1, field.FormattedValue, field.Name)); } }
void DecompileUnknown(DocumentTreeNodeData node) { if (node is IDecompileSelf decompileSelf && decompileNodeContext is not null) { if (decompileSelf.Decompile(decompileNodeContext)) { return; } } decompiler.WriteCommentLine(output, NameUtilities.CleanName(node.ToString(decompiler))); }
protected virtual void DecompileFields(IDecompiler decompiler, IDecompilerOutput output) { foreach (var vm in HexVMs) { decompiler.WriteCommentLine(output, string.Empty); decompiler.WriteCommentLine(output, string.Format("{0}:", vm.Name)); foreach (var field in vm.HexFields) { decompiler.WriteCommentLine(output, string.Format("{0:X8} - {1:X8} {2} = {3}", field.StartOffset, field.EndOffset, field.FormattedValue, field.Name)); } } }
void DecompileUnknown(IDocumentTreeNodeData node) { var decompileSelf = node as IDecompileSelf; if (decompileSelf != null && decompileNodeContext != null) { if (decompileSelf.Decompile(decompileNodeContext)) { return; } } decompiler.WriteCommentLine(output, NameUtilities.CleanName(node.ToString(decompiler))); }
protected override void DecompileFields(IDecompiler decompiler, IDecompilerOutput output) { decompiler.WriteCommentLine(output, string.Empty); decompiler.WriteCommentBegin(output, true); WriteHeader(output); decompiler.WriteCommentEnd(output, true); output.WriteLine(); for (int i = 0; i < (int)MetaDataTableVM.Rows; i++) { var obj = MetaDataTableVM.Get(i); decompiler.WriteCommentBegin(output, true); Write(output, obj); decompiler.WriteCommentEnd(output, true); output.WriteLine(); } }
protected override void DecompileFields(IDecompiler decompiler, IDecompilerOutput output) { decompiler.WriteCommentLine(output, string.Empty); decompiler.WriteCommentBegin(output, true); WriteHeader(output); decompiler.WriteCommentEnd(output, true); output.WriteLine(); for (int i = 0; i < (int)MetadataTableVM.Rows; i++) { var obj = MetadataTableVM.Get(i); decompiler.WriteCommentBegin(output, true); Write(output, obj); decompiler.WriteCommentEnd(output, true); output.WriteLine(); } }