Space

Files CCore/inc/gadget/Space.h CCore/src/gadget/Space.cpp

Space is a simple structure, designed to represent a region of the raw memory:

struct Space
 {
  void *mem;
  ulen len;
  
  Space() : mem(0),len(0) {}
  
  Space(NothingType) : Space() {}
  
  Space(void *mem_,ulen len_) : mem(mem_),len(len_) {}
 };

DeltaLen is a simple structure, designed to represent the result of a length adjustment:

struct DeltaLen
 {
  ulen delta;
  bool ok;
  
  DeltaLen(NothingType) : delta(0),ok(false) {}
    
  DeltaLen(ulen delta_) : delta(delta_),ok(true) {}
 };