How to use a char * buffer I read from a file.

I have a char * buffer read from a file.
Now, How I'd like to :

How can I convert the buffer to a string, to a double, to an array of doubles, etc.?
Have I a way to do something likethis :

my_type = the_buffer(position,number_of_bytes)

or
my_type =thebuferr.get_a_type
a_float=thebuffer.get_float

And the reverse way? That is to say, how to put info into the buffer.


Is there something like this ?
Thanks


Last edited on
Topic archived. No new replies allowed.