1 #ifndef RBX_MARSHAL_HPP
2 #define RBX_MARSHAL_HPP
13 class InstructionSequence
;
29 Marshaller(STATE
, CompiledCode
* code
, std::ostream
& stream
)
37 void marshal(Object
* obj
);
38 void put_compiled_code(CompiledCode
* code
);
39 void put_fixnum(Object
* obj
);
40 void put_string(const char* type
, String
* str
);
41 void put_rational(Object
* obj
);
42 void put_complex(Object
* obj
);
43 void put_constant(Object
* obj
);
51 UnMarshaller(STATE
, std::istream
& stream
)
60 Object
* get_rational();
61 Object
* get_complex();
67 InstructionSequence
* get_iseq();
68 CompiledCode
* get_compiled_code();
69 Object
* get_constant();
70 Object
* get_encoding();
77 Error(const char* msg
)
81 const char* message() const {