im having problem in code below, while making my own file handler. the data 
stored in buffer, so i can recall portion of data in diff format and length 
like int,short,etc.  but im stuck with function getb() below. any suggestion? 
thks.

struct T_FILE_RAM {
  ubyte[] buffer;
  int offset;

void getb(void* buf, int size) {
        buf=&b[offset..offset+size]; //<-- prob here
}

void read(out uint x) { getb(&x, x.sizeof); }
void read(out ushort x) { getb(&x, x.sizeof); }

}

Reply via email to