inline uint32_t code(uint32_t reg, Writer &writer)
{
uint32_t ZIEL, LHS, RHS;
if(op == OP_CONJ) {
LHS = lhs->code(reg, writer);
RHS = rhs->code(LHS + 1, writer);
reg = RHS + 1;
writer << OP_CONJ << reg << LHS << RHS;
...
Can someone maybe help me understand what "<<" does?
Here is the Writer
struct :
struct Writer {
std::ostream &os;
inline Writer(std::ostream &_os) : os(_os) { } inline Writer &operator<<(uint32_t val) {
os.write((const char*)&val, sizeof(uint32_t));
return *this;
}