Platforms to show: All Mac Windows Linux Cross-Platform
Back to LargeBinaryStreamMBS class.
LargeBinaryStreamMBS.Create(file as folderitem, MacType as string, MacCreator as string) as LargeBinaryStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is already a file, it is deleted.
On Windows the parameters are ignored.
Returns nil on any error.
See also:
LargeBinaryStreamMBS.Create(path as string, MacType as string, MacCreator as string, WinShareMode as Integer = 0) as LargeBinaryStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If there is already a file, it is deleted.
On Windows the parameters are ignored.
Returns nil on any error.
See also:
LargeBinaryStreamMBS.CreateResStream(file as folderitem, MacType as string, MacCreator as string) as ResStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If there is already a file, it is deleted.
If the file could not be created it is deleted.
Returns nil on any error.
See also:
LargeBinaryStreamMBS.CreateResStream(path as string, MacType as string, MacCreator as string) as ResStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If there is already a file, it is deleted.
If the file could not be created it is deleted.
Returns nil on any error.
See also:
LargeBinaryStreamMBS.DeleteDataFork(file as folderitem)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Equal to open the file using a binarystream and setting the length property to 0.
On Mac OS a file can exist without a datafork, with a resource fork or even without any fork.
LargeBinaryStreamMBS.DeleteResourceFork(file as folderitem)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Equal to open the file using a ResStreamMBS and setting the length property to 0.
On Mac OS a file can exist without a datafork, with a resource fork or even without any fork.
LargeBinaryStreamMBS.Open(file as folderitem, write as Boolean) as LargeBinaryStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
See also:
LargeBinaryStreamMBS.Open(path as string, write as Boolean, WinShareMode as Integer = 0) as LargeBinaryStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any error.
For special cases, you may need to allow Shared Read or Write and for that case, we have WinShareMode parameter.
For WinShareMode, you can pass 1 for shared reading, 2 for shared writing, 4 for shared deletion. Or combine those. Passing zero prevents sharing.
See also:
LargeBinaryStreamMBS.OpenAsResStream(file as folderitem, write as Boolean) as ResStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns nil on any error.
See also:
LargeBinaryStreamMBS.OpenAsResStream(path as string, write as Boolean) as ResStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns nil on any error.
See also:
LargeBinaryStreamMBS.WinCreateStream(file as folderitem, StreamName as String, WinShareMode as Integer = 0) as LargeBinaryStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 16.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Returns nil in case of error.
Some examples using this method:
LargeBinaryStreamMBS.WinDeleteStream(file as folderitem, StreamName as String) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 16.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Returns true on success.
LargeBinaryStreamMBS.WinOpenStream(file as folderitem, StreamName as String, write as Boolean, WinShareMode as Integer = 0) as LargeBinaryStreamMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 16.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Returns nil in case of error.
Some examples using this method:
The items on this page are in the following plugins: MBS Util Plugin.