mio icon indicating copy to clipboard operation
mio copied to clipboard

char* type

Open Servall4 opened this issue 2 years ago • 2 comments

How can i cast this to char* type when reading file like in unix mmap since i can't use strchr() function with given type.

Servall4 avatar Mar 12 '23 17:03 Servall4

hello, you may use basic_mmap::begin() for this purpose

leha-bot avatar Mar 15 '23 09:03 leha-bot

Hello, thanks for your reply! At the moment I use:

mio::mmap_source mmap; mmap.map(datPath, offset, length, error); char *data = (char *)mmap.data();

Is there any difference between these and basic_mmap::begin()?

Servall4 avatar Mar 16 '23 06:03 Servall4