objdiff-wasm 2.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.d.ts ADDED
@@ -0,0 +1,993 @@
1
+ import { MessageType, PartialMessage, IBinaryReader, BinaryReadOptions, IBinaryWriter, BinaryWriteOptions } from '@protobuf-ts/runtime';
2
+
3
+ /**
4
+ * Symbol visibility flags
5
+ *
6
+ * @generated from protobuf enum objdiff.diff.SymbolFlag
7
+ */
8
+ declare enum SymbolFlag {
9
+ /**
10
+ * @generated from protobuf enum value: SYMBOL_NONE = 0;
11
+ */
12
+ SYMBOL_NONE = 0,
13
+ /**
14
+ * @generated from protobuf enum value: SYMBOL_GLOBAL = 1;
15
+ */
16
+ SYMBOL_GLOBAL = 1,
17
+ /**
18
+ * @generated from protobuf enum value: SYMBOL_LOCAL = 2;
19
+ */
20
+ SYMBOL_LOCAL = 2,
21
+ /**
22
+ * @generated from protobuf enum value: SYMBOL_WEAK = 3;
23
+ */
24
+ SYMBOL_WEAK = 3,
25
+ /**
26
+ * @generated from protobuf enum value: SYMBOL_COMMON = 4;
27
+ */
28
+ SYMBOL_COMMON = 4,
29
+ /**
30
+ * @generated from protobuf enum value: SYMBOL_HIDDEN = 5;
31
+ */
32
+ SYMBOL_HIDDEN = 5
33
+ }
34
+ /**
35
+ * @generated from protobuf enum objdiff.diff.DiffKind
36
+ */
37
+ declare enum DiffKind {
38
+ /**
39
+ * @generated from protobuf enum value: DIFF_NONE = 0;
40
+ */
41
+ DIFF_NONE = 0,
42
+ /**
43
+ * @generated from protobuf enum value: DIFF_REPLACE = 1;
44
+ */
45
+ DIFF_REPLACE = 1,
46
+ /**
47
+ * @generated from protobuf enum value: DIFF_DELETE = 2;
48
+ */
49
+ DIFF_DELETE = 2,
50
+ /**
51
+ * @generated from protobuf enum value: DIFF_INSERT = 3;
52
+ */
53
+ DIFF_INSERT = 3,
54
+ /**
55
+ * @generated from protobuf enum value: DIFF_OP_MISMATCH = 4;
56
+ */
57
+ DIFF_OP_MISMATCH = 4,
58
+ /**
59
+ * @generated from protobuf enum value: DIFF_ARG_MISMATCH = 5;
60
+ */
61
+ DIFF_ARG_MISMATCH = 5
62
+ }
63
+ /**
64
+ * @generated from protobuf enum objdiff.diff.SectionKind
65
+ */
66
+ declare enum SectionKind {
67
+ /**
68
+ * @generated from protobuf enum value: SECTION_UNKNOWN = 0;
69
+ */
70
+ SECTION_UNKNOWN = 0,
71
+ /**
72
+ * @generated from protobuf enum value: SECTION_TEXT = 1;
73
+ */
74
+ SECTION_TEXT = 1,
75
+ /**
76
+ * @generated from protobuf enum value: SECTION_DATA = 2;
77
+ */
78
+ SECTION_DATA = 2,
79
+ /**
80
+ * @generated from protobuf enum value: SECTION_BSS = 3;
81
+ */
82
+ SECTION_BSS = 3,
83
+ /**
84
+ * @generated from protobuf enum value: SECTION_COMMON = 4;
85
+ */
86
+ SECTION_COMMON = 4
87
+ }
88
+ declare class Symbol$Type extends MessageType<Symbol> {
89
+ constructor();
90
+ create(value?: PartialMessage<Symbol>): Symbol;
91
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Symbol): Symbol;
92
+ internalBinaryWrite(message: Symbol, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
93
+ }
94
+ /**
95
+ * A symbol
96
+ *
97
+ * @generated from protobuf message objdiff.diff.Symbol
98
+ */
99
+ interface Symbol {
100
+ /**
101
+ * Name of the symbol
102
+ *
103
+ * @generated from protobuf field: string name = 1;
104
+ */
105
+ name: string;
106
+ /**
107
+ * Demangled name of the symbol
108
+ *
109
+ * @generated from protobuf field: optional string demangled_name = 2;
110
+ */
111
+ demangled_name?: string;
112
+ /**
113
+ * Symbol address
114
+ *
115
+ * @generated from protobuf field: uint64 address = 3;
116
+ */
117
+ address: bigint;
118
+ /**
119
+ * Symbol size
120
+ *
121
+ * @generated from protobuf field: uint64 size = 4;
122
+ */
123
+ size: bigint;
124
+ /**
125
+ * Bitmask of SymbolFlag
126
+ *
127
+ * @generated from protobuf field: uint32 flags = 5;
128
+ */
129
+ flags: number;
130
+ }
131
+ /**
132
+ * @generated MessageType for protobuf message objdiff.diff.Symbol
133
+ */
134
+ declare const Symbol: Symbol$Type;
135
+ declare class Instruction$Type extends MessageType<Instruction> {
136
+ constructor();
137
+ create(value?: PartialMessage<Instruction>): Instruction;
138
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Instruction): Instruction;
139
+ internalBinaryWrite(message: Instruction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
140
+ }
141
+ /**
142
+ * A single parsed instruction
143
+ *
144
+ * @generated from protobuf message objdiff.diff.Instruction
145
+ */
146
+ interface Instruction {
147
+ /**
148
+ * Instruction address
149
+ *
150
+ * @generated from protobuf field: uint64 address = 1;
151
+ */
152
+ address: bigint;
153
+ /**
154
+ * Instruction size
155
+ *
156
+ * @generated from protobuf field: uint32 size = 2;
157
+ */
158
+ size: number;
159
+ /**
160
+ * Instruction opcode
161
+ *
162
+ * @generated from protobuf field: uint32 opcode = 3;
163
+ */
164
+ opcode: number;
165
+ /**
166
+ * Instruction mnemonic
167
+ *
168
+ * @generated from protobuf field: string mnemonic = 4;
169
+ */
170
+ mnemonic: string;
171
+ /**
172
+ * Instruction formatted string
173
+ *
174
+ * @generated from protobuf field: string formatted = 5;
175
+ */
176
+ formatted: string;
177
+ /**
178
+ * Original (unsimplified) instruction string
179
+ *
180
+ * @generated from protobuf field: optional string original = 6;
181
+ */
182
+ original?: string;
183
+ /**
184
+ * Instruction arguments
185
+ *
186
+ * @generated from protobuf field: repeated objdiff.diff.Argument arguments = 7;
187
+ */
188
+ arguments: Argument[];
189
+ /**
190
+ * Instruction relocation
191
+ *
192
+ * @generated from protobuf field: optional objdiff.diff.Relocation relocation = 8;
193
+ */
194
+ relocation?: Relocation;
195
+ /**
196
+ * Instruction branch destination
197
+ *
198
+ * @generated from protobuf field: optional uint64 branch_dest = 9;
199
+ */
200
+ branch_dest?: bigint;
201
+ /**
202
+ * Instruction line number
203
+ *
204
+ * @generated from protobuf field: optional uint32 line_number = 10;
205
+ */
206
+ line_number?: number;
207
+ }
208
+ /**
209
+ * @generated MessageType for protobuf message objdiff.diff.Instruction
210
+ */
211
+ declare const Instruction: Instruction$Type;
212
+ declare class Argument$Type extends MessageType<Argument> {
213
+ constructor();
214
+ create(value?: PartialMessage<Argument>): Argument;
215
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Argument): Argument;
216
+ internalBinaryWrite(message: Argument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
217
+ }
218
+ /**
219
+ * An instruction argument
220
+ *
221
+ * @generated from protobuf message objdiff.diff.Argument
222
+ */
223
+ interface Argument {
224
+ /**
225
+ * @generated from protobuf oneof: value
226
+ */
227
+ value: {
228
+ oneofKind: "plain_text";
229
+ /**
230
+ * Plain text
231
+ *
232
+ * @generated from protobuf field: string plain_text = 1;
233
+ */
234
+ plain_text: string;
235
+ } | {
236
+ oneofKind: "argument";
237
+ /**
238
+ * Value
239
+ *
240
+ * @generated from protobuf field: objdiff.diff.ArgumentValue argument = 2;
241
+ */
242
+ argument: ArgumentValue;
243
+ } | {
244
+ oneofKind: "relocation";
245
+ /**
246
+ * Relocation
247
+ *
248
+ * @generated from protobuf field: objdiff.diff.ArgumentRelocation relocation = 3;
249
+ */
250
+ relocation: ArgumentRelocation;
251
+ } | {
252
+ oneofKind: "branch_dest";
253
+ /**
254
+ * Branch destination
255
+ *
256
+ * @generated from protobuf field: uint64 branch_dest = 4;
257
+ */
258
+ branch_dest: bigint;
259
+ } | {
260
+ oneofKind: undefined;
261
+ };
262
+ }
263
+ /**
264
+ * @generated MessageType for protobuf message objdiff.diff.Argument
265
+ */
266
+ declare const Argument: Argument$Type;
267
+ declare class ArgumentValue$Type extends MessageType<ArgumentValue> {
268
+ constructor();
269
+ create(value?: PartialMessage<ArgumentValue>): ArgumentValue;
270
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArgumentValue): ArgumentValue;
271
+ internalBinaryWrite(message: ArgumentValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
272
+ }
273
+ /**
274
+ * An instruction argument value
275
+ *
276
+ * @generated from protobuf message objdiff.diff.ArgumentValue
277
+ */
278
+ interface ArgumentValue {
279
+ /**
280
+ * @generated from protobuf oneof: value
281
+ */
282
+ value: {
283
+ oneofKind: "signed";
284
+ /**
285
+ * Signed integer
286
+ *
287
+ * @generated from protobuf field: int64 signed = 1;
288
+ */
289
+ signed: bigint;
290
+ } | {
291
+ oneofKind: "unsigned";
292
+ /**
293
+ * Unsigned integer
294
+ *
295
+ * @generated from protobuf field: uint64 unsigned = 2;
296
+ */
297
+ unsigned: bigint;
298
+ } | {
299
+ oneofKind: "opaque";
300
+ /**
301
+ * Opaque value
302
+ *
303
+ * @generated from protobuf field: string opaque = 3;
304
+ */
305
+ opaque: string;
306
+ } | {
307
+ oneofKind: undefined;
308
+ };
309
+ }
310
+ /**
311
+ * @generated MessageType for protobuf message objdiff.diff.ArgumentValue
312
+ */
313
+ declare const ArgumentValue: ArgumentValue$Type;
314
+ declare class ArgumentRelocation$Type extends MessageType<ArgumentRelocation> {
315
+ constructor();
316
+ create(value?: PartialMessage<ArgumentRelocation>): ArgumentRelocation;
317
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArgumentRelocation): ArgumentRelocation;
318
+ internalBinaryWrite(message: ArgumentRelocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
319
+ }
320
+ /**
321
+ * Marker type for relocation arguments
322
+ *
323
+ * @generated from protobuf message objdiff.diff.ArgumentRelocation
324
+ */
325
+ interface ArgumentRelocation {
326
+ }
327
+ /**
328
+ * @generated MessageType for protobuf message objdiff.diff.ArgumentRelocation
329
+ */
330
+ declare const ArgumentRelocation: ArgumentRelocation$Type;
331
+ declare class Relocation$Type extends MessageType<Relocation> {
332
+ constructor();
333
+ create(value?: PartialMessage<Relocation>): Relocation;
334
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Relocation): Relocation;
335
+ internalBinaryWrite(message: Relocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
336
+ }
337
+ /**
338
+ * @generated from protobuf message objdiff.diff.Relocation
339
+ */
340
+ interface Relocation {
341
+ /**
342
+ * @generated from protobuf field: uint32 type = 1;
343
+ */
344
+ type: number;
345
+ /**
346
+ * @generated from protobuf field: string type_name = 2;
347
+ */
348
+ type_name: string;
349
+ /**
350
+ * @generated from protobuf field: objdiff.diff.RelocationTarget target = 3;
351
+ */
352
+ target?: RelocationTarget;
353
+ }
354
+ /**
355
+ * @generated MessageType for protobuf message objdiff.diff.Relocation
356
+ */
357
+ declare const Relocation: Relocation$Type;
358
+ declare class RelocationTarget$Type extends MessageType<RelocationTarget> {
359
+ constructor();
360
+ create(value?: PartialMessage<RelocationTarget>): RelocationTarget;
361
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RelocationTarget): RelocationTarget;
362
+ internalBinaryWrite(message: RelocationTarget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
363
+ }
364
+ /**
365
+ * @generated from protobuf message objdiff.diff.RelocationTarget
366
+ */
367
+ interface RelocationTarget {
368
+ /**
369
+ * @generated from protobuf field: objdiff.diff.Symbol symbol = 1;
370
+ */
371
+ symbol?: Symbol;
372
+ /**
373
+ * @generated from protobuf field: int64 addend = 2;
374
+ */
375
+ addend: bigint;
376
+ }
377
+ /**
378
+ * @generated MessageType for protobuf message objdiff.diff.RelocationTarget
379
+ */
380
+ declare const RelocationTarget: RelocationTarget$Type;
381
+ declare class InstructionDiff$Type extends MessageType<InstructionDiff> {
382
+ constructor();
383
+ create(value?: PartialMessage<InstructionDiff>): InstructionDiff;
384
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstructionDiff): InstructionDiff;
385
+ internalBinaryWrite(message: InstructionDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
386
+ }
387
+ /**
388
+ * @generated from protobuf message objdiff.diff.InstructionDiff
389
+ */
390
+ interface InstructionDiff {
391
+ /**
392
+ * @generated from protobuf field: objdiff.diff.DiffKind diff_kind = 1;
393
+ */
394
+ diff_kind: DiffKind;
395
+ /**
396
+ * @generated from protobuf field: optional objdiff.diff.Instruction instruction = 2;
397
+ */
398
+ instruction?: Instruction;
399
+ /**
400
+ * @generated from protobuf field: optional objdiff.diff.InstructionBranchFrom branch_from = 3;
401
+ */
402
+ branch_from?: InstructionBranchFrom;
403
+ /**
404
+ * @generated from protobuf field: optional objdiff.diff.InstructionBranchTo branch_to = 4;
405
+ */
406
+ branch_to?: InstructionBranchTo;
407
+ /**
408
+ * @generated from protobuf field: repeated objdiff.diff.DiffDisplay display = 5;
409
+ */
410
+ display: DiffDisplay[];
411
+ }
412
+ /**
413
+ * @generated MessageType for protobuf message objdiff.diff.InstructionDiff
414
+ */
415
+ declare const InstructionDiff: InstructionDiff$Type;
416
+ declare class InstructionBranchFrom$Type extends MessageType<InstructionBranchFrom> {
417
+ constructor();
418
+ create(value?: PartialMessage<InstructionBranchFrom>): InstructionBranchFrom;
419
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstructionBranchFrom): InstructionBranchFrom;
420
+ internalBinaryWrite(message: InstructionBranchFrom, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
421
+ }
422
+ /**
423
+ * @generated from protobuf message objdiff.diff.InstructionBranchFrom
424
+ */
425
+ interface InstructionBranchFrom {
426
+ /**
427
+ * @generated from protobuf field: repeated uint32 instruction_index = 1;
428
+ */
429
+ instruction_index: number[];
430
+ /**
431
+ * @generated from protobuf field: uint32 branch_index = 2;
432
+ */
433
+ branch_index: number;
434
+ }
435
+ /**
436
+ * @generated MessageType for protobuf message objdiff.diff.InstructionBranchFrom
437
+ */
438
+ declare const InstructionBranchFrom: InstructionBranchFrom$Type;
439
+ declare class InstructionBranchTo$Type extends MessageType<InstructionBranchTo> {
440
+ constructor();
441
+ create(value?: PartialMessage<InstructionBranchTo>): InstructionBranchTo;
442
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstructionBranchTo): InstructionBranchTo;
443
+ internalBinaryWrite(message: InstructionBranchTo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
444
+ }
445
+ /**
446
+ * @generated from protobuf message objdiff.diff.InstructionBranchTo
447
+ */
448
+ interface InstructionBranchTo {
449
+ /**
450
+ * @generated from protobuf field: uint32 instruction_index = 1;
451
+ */
452
+ instruction_index: number;
453
+ /**
454
+ * @generated from protobuf field: uint32 branch_index = 2;
455
+ */
456
+ branch_index: number;
457
+ }
458
+ /**
459
+ * @generated MessageType for protobuf message objdiff.diff.InstructionBranchTo
460
+ */
461
+ declare const InstructionBranchTo: InstructionBranchTo$Type;
462
+ declare class FunctionDiff$Type extends MessageType<FunctionDiff> {
463
+ constructor();
464
+ create(value?: PartialMessage<FunctionDiff>): FunctionDiff;
465
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FunctionDiff): FunctionDiff;
466
+ internalBinaryWrite(message: FunctionDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
467
+ }
468
+ /**
469
+ * @generated from protobuf message objdiff.diff.FunctionDiff
470
+ */
471
+ interface FunctionDiff {
472
+ /**
473
+ * @generated from protobuf field: objdiff.diff.Symbol symbol = 1;
474
+ */
475
+ symbol?: Symbol;
476
+ /**
477
+ * @generated from protobuf field: repeated objdiff.diff.InstructionDiff instructions = 2;
478
+ */
479
+ instructions: InstructionDiff[];
480
+ /**
481
+ * @generated from protobuf field: optional float match_percent = 3;
482
+ */
483
+ match_percent?: number;
484
+ }
485
+ /**
486
+ * @generated MessageType for protobuf message objdiff.diff.FunctionDiff
487
+ */
488
+ declare const FunctionDiff: FunctionDiff$Type;
489
+ declare class DataDiff$Type extends MessageType<DataDiff> {
490
+ constructor();
491
+ create(value?: PartialMessage<DataDiff>): DataDiff;
492
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataDiff): DataDiff;
493
+ internalBinaryWrite(message: DataDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
494
+ }
495
+ /**
496
+ * @generated from protobuf message objdiff.diff.DataDiff
497
+ */
498
+ interface DataDiff {
499
+ /**
500
+ * @generated from protobuf field: objdiff.diff.DiffKind kind = 1;
501
+ */
502
+ kind: DiffKind;
503
+ /**
504
+ * @generated from protobuf field: bytes data = 2;
505
+ */
506
+ data: Uint8Array;
507
+ /**
508
+ * May be larger than data
509
+ *
510
+ * @generated from protobuf field: uint64 size = 3;
511
+ */
512
+ size: bigint;
513
+ }
514
+ /**
515
+ * @generated MessageType for protobuf message objdiff.diff.DataDiff
516
+ */
517
+ declare const DataDiff: DataDiff$Type;
518
+ declare class SectionDiff$Type extends MessageType<SectionDiff> {
519
+ constructor();
520
+ create(value?: PartialMessage<SectionDiff>): SectionDiff;
521
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SectionDiff): SectionDiff;
522
+ internalBinaryWrite(message: SectionDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
523
+ }
524
+ /**
525
+ * @generated from protobuf message objdiff.diff.SectionDiff
526
+ */
527
+ interface SectionDiff {
528
+ /**
529
+ * @generated from protobuf field: string name = 1;
530
+ */
531
+ name: string;
532
+ /**
533
+ * @generated from protobuf field: objdiff.diff.SectionKind kind = 2;
534
+ */
535
+ kind: SectionKind;
536
+ /**
537
+ * @generated from protobuf field: uint64 size = 3;
538
+ */
539
+ size: bigint;
540
+ /**
541
+ * @generated from protobuf field: uint64 address = 4;
542
+ */
543
+ address: bigint;
544
+ /**
545
+ * @generated from protobuf field: repeated objdiff.diff.FunctionDiff functions = 5;
546
+ */
547
+ functions: FunctionDiff[];
548
+ /**
549
+ * @generated from protobuf field: repeated objdiff.diff.DataDiff data = 6;
550
+ */
551
+ data: DataDiff[];
552
+ /**
553
+ * @generated from protobuf field: optional float match_percent = 7;
554
+ */
555
+ match_percent?: number;
556
+ }
557
+ /**
558
+ * @generated MessageType for protobuf message objdiff.diff.SectionDiff
559
+ */
560
+ declare const SectionDiff: SectionDiff$Type;
561
+ declare class ObjectDiff$Type extends MessageType<ObjectDiff> {
562
+ constructor();
563
+ create(value?: PartialMessage<ObjectDiff>): ObjectDiff;
564
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ObjectDiff): ObjectDiff;
565
+ internalBinaryWrite(message: ObjectDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
566
+ }
567
+ /**
568
+ * @generated from protobuf message objdiff.diff.ObjectDiff
569
+ */
570
+ interface ObjectDiff {
571
+ /**
572
+ * @generated from protobuf field: repeated objdiff.diff.SectionDiff sections = 1;
573
+ */
574
+ sections: SectionDiff[];
575
+ }
576
+ /**
577
+ * @generated MessageType for protobuf message objdiff.diff.ObjectDiff
578
+ */
579
+ declare const ObjectDiff: ObjectDiff$Type;
580
+ declare class DiffResult$Type extends MessageType<DiffResult> {
581
+ constructor();
582
+ create(value?: PartialMessage<DiffResult>): DiffResult;
583
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffResult): DiffResult;
584
+ internalBinaryWrite(message: DiffResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
585
+ }
586
+ /**
587
+ * @generated from protobuf message objdiff.diff.DiffResult
588
+ */
589
+ interface DiffResult {
590
+ /**
591
+ * @generated from protobuf field: optional objdiff.diff.ObjectDiff left = 1;
592
+ */
593
+ left?: ObjectDiff;
594
+ /**
595
+ * @generated from protobuf field: optional objdiff.diff.ObjectDiff right = 2;
596
+ */
597
+ right?: ObjectDiff;
598
+ }
599
+ /**
600
+ * @generated MessageType for protobuf message objdiff.diff.DiffResult
601
+ */
602
+ declare const DiffResult: DiffResult$Type;
603
+ declare class DiffDisplay$Type extends MessageType<DiffDisplay> {
604
+ constructor();
605
+ create(value?: PartialMessage<DiffDisplay>): DiffDisplay;
606
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffDisplay): DiffDisplay;
607
+ internalBinaryWrite(message: DiffDisplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
608
+ }
609
+ /**
610
+ * @generated from protobuf message objdiff.diff.DiffDisplay
611
+ */
612
+ interface DiffDisplay {
613
+ /**
614
+ * @generated from protobuf field: objdiff.diff.DiffText text = 1;
615
+ */
616
+ text?: DiffText;
617
+ /**
618
+ * @generated from protobuf field: optional uint32 diff_index = 2;
619
+ */
620
+ diff_index?: number;
621
+ }
622
+ /**
623
+ * @generated MessageType for protobuf message objdiff.diff.DiffDisplay
624
+ */
625
+ declare const DiffDisplay: DiffDisplay$Type;
626
+ declare class DiffText$Type extends MessageType<DiffText> {
627
+ constructor();
628
+ create(value?: PartialMessage<DiffText>): DiffText;
629
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffText): DiffText;
630
+ internalBinaryWrite(message: DiffText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
631
+ }
632
+ /**
633
+ * @generated from protobuf message objdiff.diff.DiffText
634
+ */
635
+ interface DiffText {
636
+ /**
637
+ * @generated from protobuf oneof: text
638
+ */
639
+ text: {
640
+ oneofKind: "basic";
641
+ /**
642
+ * @generated from protobuf field: objdiff.diff.DiffTextBasic basic = 1;
643
+ */
644
+ basic: DiffTextBasic;
645
+ } | {
646
+ oneofKind: "basic_color";
647
+ /**
648
+ * @generated from protobuf field: objdiff.diff.DiffTextBasicColor basic_color = 2;
649
+ */
650
+ basic_color: DiffTextBasicColor;
651
+ } | {
652
+ oneofKind: "line";
653
+ /**
654
+ * @generated from protobuf field: objdiff.diff.DiffTextLine line = 3;
655
+ */
656
+ line: DiffTextLine;
657
+ } | {
658
+ oneofKind: "address";
659
+ /**
660
+ * @generated from protobuf field: objdiff.diff.DiffTextAddress address = 4;
661
+ */
662
+ address: DiffTextAddress;
663
+ } | {
664
+ oneofKind: "opcode";
665
+ /**
666
+ * @generated from protobuf field: objdiff.diff.DiffTextOpcode opcode = 5;
667
+ */
668
+ opcode: DiffTextOpcode;
669
+ } | {
670
+ oneofKind: "argument";
671
+ /**
672
+ * @generated from protobuf field: objdiff.diff.DiffTextArgument argument = 6;
673
+ */
674
+ argument: DiffTextArgument;
675
+ } | {
676
+ oneofKind: "branch_dest";
677
+ /**
678
+ * @generated from protobuf field: objdiff.diff.DiffTextBranchDest branch_dest = 7;
679
+ */
680
+ branch_dest: DiffTextBranchDest;
681
+ } | {
682
+ oneofKind: "symbol";
683
+ /**
684
+ * @generated from protobuf field: objdiff.diff.DiffTextSymbol symbol = 8;
685
+ */
686
+ symbol: DiffTextSymbol;
687
+ } | {
688
+ oneofKind: "spacing";
689
+ /**
690
+ * @generated from protobuf field: objdiff.diff.DiffTextSpacing spacing = 9;
691
+ */
692
+ spacing: DiffTextSpacing;
693
+ } | {
694
+ oneofKind: "eol";
695
+ /**
696
+ * @generated from protobuf field: objdiff.diff.DiffTextEol eol = 10;
697
+ */
698
+ eol: DiffTextEol;
699
+ } | {
700
+ oneofKind: undefined;
701
+ };
702
+ }
703
+ /**
704
+ * @generated MessageType for protobuf message objdiff.diff.DiffText
705
+ */
706
+ declare const DiffText: DiffText$Type;
707
+ declare class DiffTextBasic$Type extends MessageType<DiffTextBasic> {
708
+ constructor();
709
+ create(value?: PartialMessage<DiffTextBasic>): DiffTextBasic;
710
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextBasic): DiffTextBasic;
711
+ internalBinaryWrite(message: DiffTextBasic, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
712
+ }
713
+ /**
714
+ * @generated from protobuf message objdiff.diff.DiffTextBasic
715
+ */
716
+ interface DiffTextBasic {
717
+ /**
718
+ * @generated from protobuf field: string text = 1;
719
+ */
720
+ text: string;
721
+ }
722
+ /**
723
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextBasic
724
+ */
725
+ declare const DiffTextBasic: DiffTextBasic$Type;
726
+ declare class DiffTextBasicColor$Type extends MessageType<DiffTextBasicColor> {
727
+ constructor();
728
+ create(value?: PartialMessage<DiffTextBasicColor>): DiffTextBasicColor;
729
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextBasicColor): DiffTextBasicColor;
730
+ internalBinaryWrite(message: DiffTextBasicColor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
731
+ }
732
+ /**
733
+ * @generated from protobuf message objdiff.diff.DiffTextBasicColor
734
+ */
735
+ interface DiffTextBasicColor {
736
+ /**
737
+ * @generated from protobuf field: string text = 1;
738
+ */
739
+ text: string;
740
+ /**
741
+ * @generated from protobuf field: uint32 index = 2;
742
+ */
743
+ index: number;
744
+ }
745
+ /**
746
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextBasicColor
747
+ */
748
+ declare const DiffTextBasicColor: DiffTextBasicColor$Type;
749
+ declare class DiffTextLine$Type extends MessageType<DiffTextLine> {
750
+ constructor();
751
+ create(value?: PartialMessage<DiffTextLine>): DiffTextLine;
752
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextLine): DiffTextLine;
753
+ internalBinaryWrite(message: DiffTextLine, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
754
+ }
755
+ /**
756
+ * @generated from protobuf message objdiff.diff.DiffTextLine
757
+ */
758
+ interface DiffTextLine {
759
+ /**
760
+ * @generated from protobuf field: uint32 line_number = 1;
761
+ */
762
+ line_number: number;
763
+ }
764
+ /**
765
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextLine
766
+ */
767
+ declare const DiffTextLine: DiffTextLine$Type;
768
+ declare class DiffTextAddress$Type extends MessageType<DiffTextAddress> {
769
+ constructor();
770
+ create(value?: PartialMessage<DiffTextAddress>): DiffTextAddress;
771
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextAddress): DiffTextAddress;
772
+ internalBinaryWrite(message: DiffTextAddress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
773
+ }
774
+ /**
775
+ * @generated from protobuf message objdiff.diff.DiffTextAddress
776
+ */
777
+ interface DiffTextAddress {
778
+ /**
779
+ * @generated from protobuf field: uint64 address = 1;
780
+ */
781
+ address: bigint;
782
+ }
783
+ /**
784
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextAddress
785
+ */
786
+ declare const DiffTextAddress: DiffTextAddress$Type;
787
+ declare class DiffTextOpcode$Type extends MessageType<DiffTextOpcode> {
788
+ constructor();
789
+ create(value?: PartialMessage<DiffTextOpcode>): DiffTextOpcode;
790
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextOpcode): DiffTextOpcode;
791
+ internalBinaryWrite(message: DiffTextOpcode, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
792
+ }
793
+ /**
794
+ * @generated from protobuf message objdiff.diff.DiffTextOpcode
795
+ */
796
+ interface DiffTextOpcode {
797
+ /**
798
+ * @generated from protobuf field: string mnemonic = 1;
799
+ */
800
+ mnemonic: string;
801
+ /**
802
+ * @generated from protobuf field: uint32 opcode = 2;
803
+ */
804
+ opcode: number;
805
+ }
806
+ /**
807
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextOpcode
808
+ */
809
+ declare const DiffTextOpcode: DiffTextOpcode$Type;
810
+ declare class DiffTextArgument$Type extends MessageType<DiffTextArgument> {
811
+ constructor();
812
+ create(value?: PartialMessage<DiffTextArgument>): DiffTextArgument;
813
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextArgument): DiffTextArgument;
814
+ internalBinaryWrite(message: DiffTextArgument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
815
+ }
816
+ /**
817
+ * @generated from protobuf message objdiff.diff.DiffTextArgument
818
+ */
819
+ interface DiffTextArgument {
820
+ /**
821
+ * @generated from protobuf field: objdiff.diff.ArgumentValue value = 1;
822
+ */
823
+ value?: ArgumentValue;
824
+ }
825
+ /**
826
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextArgument
827
+ */
828
+ declare const DiffTextArgument: DiffTextArgument$Type;
829
+ declare class DiffTextBranchDest$Type extends MessageType<DiffTextBranchDest> {
830
+ constructor();
831
+ create(value?: PartialMessage<DiffTextBranchDest>): DiffTextBranchDest;
832
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextBranchDest): DiffTextBranchDest;
833
+ internalBinaryWrite(message: DiffTextBranchDest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
834
+ }
835
+ /**
836
+ * @generated from protobuf message objdiff.diff.DiffTextBranchDest
837
+ */
838
+ interface DiffTextBranchDest {
839
+ /**
840
+ * @generated from protobuf field: uint64 address = 1;
841
+ */
842
+ address: bigint;
843
+ }
844
+ /**
845
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextBranchDest
846
+ */
847
+ declare const DiffTextBranchDest: DiffTextBranchDest$Type;
848
+ declare class DiffTextSymbol$Type extends MessageType<DiffTextSymbol> {
849
+ constructor();
850
+ create(value?: PartialMessage<DiffTextSymbol>): DiffTextSymbol;
851
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextSymbol): DiffTextSymbol;
852
+ internalBinaryWrite(message: DiffTextSymbol, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
853
+ }
854
+ /**
855
+ * @generated from protobuf message objdiff.diff.DiffTextSymbol
856
+ */
857
+ interface DiffTextSymbol {
858
+ /**
859
+ * @generated from protobuf field: objdiff.diff.RelocationTarget target = 1;
860
+ */
861
+ target?: RelocationTarget;
862
+ }
863
+ /**
864
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextSymbol
865
+ */
866
+ declare const DiffTextSymbol: DiffTextSymbol$Type;
867
+ declare class DiffTextSpacing$Type extends MessageType<DiffTextSpacing> {
868
+ constructor();
869
+ create(value?: PartialMessage<DiffTextSpacing>): DiffTextSpacing;
870
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextSpacing): DiffTextSpacing;
871
+ internalBinaryWrite(message: DiffTextSpacing, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
872
+ }
873
+ /**
874
+ * @generated from protobuf message objdiff.diff.DiffTextSpacing
875
+ */
876
+ interface DiffTextSpacing {
877
+ /**
878
+ * @generated from protobuf field: uint32 count = 1;
879
+ */
880
+ count: number;
881
+ }
882
+ /**
883
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextSpacing
884
+ */
885
+ declare const DiffTextSpacing: DiffTextSpacing$Type;
886
+ declare class DiffTextEol$Type extends MessageType<DiffTextEol> {
887
+ constructor();
888
+ create(value?: PartialMessage<DiffTextEol>): DiffTextEol;
889
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextEol): DiffTextEol;
890
+ internalBinaryWrite(message: DiffTextEol, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
891
+ }
892
+ /**
893
+ * @generated from protobuf message objdiff.diff.DiffTextEol
894
+ */
895
+ interface DiffTextEol {
896
+ }
897
+ /**
898
+ * @generated MessageType for protobuf message objdiff.diff.DiffTextEol
899
+ */
900
+ declare const DiffTextEol: DiffTextEol$Type;
901
+
902
+ /**
903
+ */
904
+ declare enum ArmR9Usage {
905
+ GeneralPurpose = 0,
906
+ Sb = 1,
907
+ Tr = 2,
908
+ }
909
+ /**
910
+ */
911
+ declare enum MipsAbi {
912
+ Auto = 0,
913
+ O32 = 1,
914
+ N32 = 2,
915
+ N64 = 3,
916
+ }
917
+ /**
918
+ */
919
+ declare enum X86Formatter {
920
+ Intel = 0,
921
+ Gas = 1,
922
+ Nasm = 2,
923
+ Masm = 3,
924
+ }
925
+ /**
926
+ */
927
+ declare enum ArmArchVersion {
928
+ Auto = 0,
929
+ V4T = 1,
930
+ V5TE = 2,
931
+ V6K = 3,
932
+ }
933
+ /**
934
+ */
935
+ declare enum MipsInstrCategory {
936
+ Auto = 0,
937
+ Cpu = 1,
938
+ Rsp = 2,
939
+ R3000Gte = 3,
940
+ R4000Allegrex = 4,
941
+ R5900 = 5,
942
+ }
943
+ /**
944
+ */
945
+ declare class DiffObjConfig$1 {
946
+ free(): void;
947
+ /**
948
+ */
949
+ arm_arch_version: ArmArchVersion;
950
+ /**
951
+ */
952
+ arm_av_registers: boolean;
953
+ /**
954
+ */
955
+ arm_fp_usage: boolean;
956
+ /**
957
+ */
958
+ arm_ip_usage: boolean;
959
+ /**
960
+ */
961
+ arm_r9_usage: ArmR9Usage;
962
+ /**
963
+ */
964
+ arm_sl_usage: boolean;
965
+ /**
966
+ */
967
+ arm_unified_syntax: boolean;
968
+ /**
969
+ */
970
+ combine_data_sections: boolean;
971
+ /**
972
+ */
973
+ mips_abi: MipsAbi;
974
+ /**
975
+ */
976
+ mips_instr_category: MipsInstrCategory;
977
+ /**
978
+ */
979
+ relax_reloc_diffs: boolean;
980
+ /**
981
+ */
982
+ space_between_args: boolean;
983
+ /**
984
+ */
985
+ x86_formatter: X86Formatter;
986
+ }
987
+
988
+ type DiffObjConfig = Omit<Partial<DiffObjConfig$1>, 'free'>;
989
+
990
+ declare function initialize(workerUrl?: string | URL): void;
991
+ declare function runDiff(left: Uint8Array | undefined, right: Uint8Array | undefined, config?: DiffObjConfig): Promise<DiffResult>;
992
+
993
+ export { Argument, ArgumentRelocation, ArgumentValue, ArmArchVersion, ArmR9Usage, DataDiff, DiffKind, type DiffObjConfig, DiffResult, Instruction, InstructionBranchFrom, InstructionBranchTo, InstructionDiff, MipsAbi, MipsInstrCategory, ObjectDiff, Relocation, RelocationTarget, SectionDiff, SectionKind, Symbol, SymbolFlag, X86Formatter, initialize, runDiff };