Hi
I am trying to write to memory using a pointer, but i have no idea how to do it.
The function is defined:
Function ReadToBuff(file:TStream,offset,ptr_dest_buff:Byte Ptr)
SeekStream(file,offset)
...loop
val = Readint(file)
and now im trying to write the int into the buffer, but how?
something like that...:
'ptr_dest_buff[cnt] = val
...end loop
As you wuold have guessed, ptr_dest_buff is a pointer to buffer in which i want to write.
What i want to do is to read a portion of a binary file into a matrix, if you've got any other ideas let me know.
Thanks
I am trying to write to memory using a pointer, but i have no idea how to do it.
The function is defined:
Function ReadToBuff(file:TStream,offset,ptr_dest_buff:Byte Ptr)
SeekStream(file,offset)
...loop
val = Readint(file)
and now im trying to write the int into the buffer, but how?
something like that...:
'ptr_dest_buff[cnt] = val
...end loop
As you wuold have guessed, ptr_dest_buff is a pointer to buffer in which i want to write.
What i want to do is to read a portion of a binary file into a matrix, if you've got any other ideas let me know.
Thanks