Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSOutputStreamMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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 |
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 |
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 |
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.