Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSOutputStreamMBS class.

NSOutputStreamMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns an initialized output stream that will write stream data to memory.

Returns an initialized output stream that will write stream data to memory.

The stream must be opened before it can be used.

You retrieve the contents of the memory stream by OutputData property.

See also:

NSOutputStreamMBS.Constructor(filePath as string, append as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns an initialized output stream for writing to a specified file.

path: The path to the file the output stream will write to.
append: True if newly written data should be appended to any existing file contents, otherwise false.

Returns an initialized output stream that can write to path.

The stream must be opened before it can be used.

See also:

NSOutputStreamMBS.OutputData as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The output of the memory stream.

NSOutputStreamMBS.write(data as MemoryBlock) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Writes the contents of a provided data buffer to the receiver.

Returns a number indicating the outcome of the operation:
A positive number indicates the number of bytes written.
0 indicates that a fixed-length stream and has reached its capacity.
-1 means that the operation failed; more information about the error can be obtained with streamError.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...