LongBinaryStream REALbasic Plugin

LongBinaryStream.Constructor Constructor

Use this constructor to do optimized streaming based on shared memory blocks.

Constructor(
   f as FolderItem,
   write as Boolean,
   buffer as MemoryBlock)

Parameters

f
The FolderItem to work with
write
Set this parameter to true if you want to open the stream for writing, otherwise its opened for reading.
buffer
This you may want to use if you are doing optimized streaming that is based on sharing memory blocks. If you do not set this parameter then a default memory block with 4096 bytes is created internally.

Remarks

To know if creating a valid LongBinaryStream was successful then always check the LastError property of the object right after constructing it.

See Also

LongBinaryStream Class