Platforms to show: All Mac Windows Linux Cross-Platform

Back to LargeBinaryStreamMBS class.

LargeBinaryStreamMBS.CanWrite as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if you are allowed to write.

Even if you open a file for write you may still not be allowed to write if the permissions of the file don't allow you to write.
(Read only property)

Some examples using this property:

LargeBinaryStreamMBS.EOF as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if you are at the end of the stream.

You can set this property to truncate the file.
(Read only property)

LargeBinaryStreamMBS.Lasterror as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error code.

The values are platform dependent, but zero is no error everywhere.
(Read and Write property)

LargeBinaryStreamMBS.Length as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the current length of the file.

You can truncate the stream by setting this property.
Can't be set on Linux currently.
(Read and Write property)

LargeBinaryStreamMBS.LittleEndian as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Specifies if Integers and Shorts shall be converted in their endienness when read or written.

See Xojo's binarystream for more details.
For native platform you may set "littleendian=targetwin32".
(Read and Write property)

LargeBinaryStreamMBS.Position as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns current position.

You can set the current file stream position using this property.
(Read and Write property)

LargeBinaryStreamMBS.Yield as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Files MBS Util Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether time should be given to other threads.

If true on Mac OS X CPU time will be given to other threads while read or write operations are pending. To have an effect you need to call read/write methods in a thread.
(Read and Write property)

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


The biggest plugin in space...