Storages & Files CreateMemoryStream
CreateMemoryStream method 

Creates a stream in the memory and returns SFStream object for it.

Syntax:

Set strm = object.CreateMemoryStream

Remarks:

The memory streams act like any other stream but they are in-memory and the application always has full access rights to them. Therefore no creation flags are used in this method.

Note that you can perform all the available actions on the memory streams - read/write as binary or text, attach SFRecord object and navigate through the records defined by it etc. Using the copy/move operations implemented by the SFStream object a part or the entire stream can be easily transferred from/to file or other kind of stream resources when needed. The applications which use small amount of data can achieve great performance increase by caching their data in the memory instead of using it from the file system or other locations.

Applies to: SFMain object

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later
Not supported on the special editions for Windows CE 2.11

 

newObjects Copyright 2001-2006 newObjects [ ]