Platforms to show: All Mac Windows Linux Cross-Platform
Back to RAMStreamMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.
RamStreamMBS.Constructor(InitialSize as Integer=0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | 7.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
To avoid memory fragmentation the memory grows in 32 KByte chunks.
The parameter you give is the size for the first allocation. So if you only need 2 KByte, you just pass 2048. If you don't know the size, you can pass 0 or a negative number to get the default initial size which is 32 KByte.
You can change the GrowSize property to use a different growing size.
Performance is better if resizing the memory buffer is minimized.
The stream can grow to around 2 GB.
On low memory, the initial resize will fail and length will be 0.
RamStreamMBS.Look(count as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Like the lookahead property in a socket.
RAMStreamMBS.LookBlock(count as Integer) as memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RamStreamMBS.LookByte as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RamStreamMBS.LookLong as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RamStreamMBS.LookShort as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | 3.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.Read(count as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.ReadBlock(count as Integer) as memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.Readbyte as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.ReadLong as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function is affected by the LittleEndian Setting.
RAMStreamMBS.ReadShort as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function is affected by the LittleEndian Setting.
RAMStreamMBS.Write(data as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.WriteBlock(data as memoryblock,count as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.WriteByte(data as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
RAMStreamMBS.WriteLong(data as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This method is affected by the LittleEndian Setting.
RAMStreamMBS.WriteShort(data as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | RAMStream | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This method is affected by the LittleEndian Setting.
The items on this page are in the following plugins: MBS Util Plugin.