How to pass memory range to functions?

9 May
2006
9 May
'06
8:05 a.m.
Hi, I've got a lot of functions (compression, encryption, hashing, encoding, etc) that work on a memory range. I wrote my own class that has constructors for void*, void* void*, size_t std::string& and that automatically reinterpret_cast to unsigned char*. But I'm wondering, is there a better way to do this? Boost.Range looked appriopriate but it seemed it didn't support this scenario.
6864
Age (days ago)
6864
Last active (days ago)
0 comments
1 participants
participants (1)
-
Olaf van der Spek