mirror of
https://github.com/Ed94/perfaware.git
synced 2026-09-14 03:39:23 +00:00
30 lines
721 B
C
30 lines
721 B
C
#ifdef INTELLISENSE_DIRECTIVES
|
|
# pragma once
|
|
# include "decoder.h"
|
|
#endif
|
|
|
|
typedef Enum_(U1, X8616_SerializeStatus) {
|
|
x8616_serialize_ok = 0x00,
|
|
x8616_serialize_output_full = 0x01,
|
|
x8616_serialize_invalid_record = 0x02,
|
|
x8616_serialize_unsupported_form = 0x03,
|
|
};
|
|
|
|
typedef Struct_(X8616_SerializeRequest) {
|
|
X8616_DecodedInstruction* instructions;
|
|
U4 instruction_count; byte_pad(4);
|
|
Slice output;
|
|
Slice scratch;
|
|
FArena* info_arena;
|
|
X8616_InfoList_R msgs;
|
|
};
|
|
|
|
typedef Struct_(X8616_SerializeInfo) {
|
|
X8616_InfoList msgs;
|
|
Str8 text;
|
|
U4 instructions_written;
|
|
byte_pad(4);
|
|
};
|
|
|
|
X8616_SerializeInfo x8616_serialize_instructions(X8616_SerializeRequest request);
|