I think you'll better drop the pchar and use TMemoryStream instead, that is more Pascal and OOPOriginally Posted by M109uk
Memory streams are streams stored in ram, wh ere you can define the size. A buffer, in other word
You can create a memory stream and load the file there. Then you can pass the stream to all functions like "loadfromstream". Also, you can use the read methods to read the data, and you can still access to the pointer with the appropriate field (if i remember well it's MemoryStream.memory )
Bye!
Bookmarks