< BlitzMax < Modules < Streams

Functions

CreateRamStream

Function CreateRamStream:TRamStream( ram:Byte Ptr,size,readable,writeable )

Description: Create a ram stream

Returns: A ram stream object

Information: A ram stream allows you to read and/or write data directly from/to memory. A ram stream extends a stream object so can be used anywhere a stream is expected.

Be careful when working with ram streams, as any attempt to access memory which has not been allocated to your application can result in a runtime crash.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.