Platforms to show: All Mac Windows Linux Cross-Platform
MemoryBlock
Extensions for the Xojo MemoryBlock class.
- Globals
- Memoryblock2ptrMBS(mem as memoryblock) as Integer
- NewMemoryBlockFromPtrMBS(ptr as Integer) as memoryblock
- NewMemoryBlockWithBytesMBS(Data as Ptr, size as Integer) as memoryblock
- ptr2MemoryblockMBS(Value as Integer) as memoryblock
- Classes
- class MemoryBlockMBS
- method Close
- method Constructor
- method Constructor(Mem as MemoryBlock)
- method Constructor(Mem as MemoryBlock, Size as Int64, Offset as Int64 = 0)
- method Constructor(Size as Int64)
- method Constructor(Str as String)
- method Constructor(Str as String, Size as Int64, Offset as Int64 = 0)
- method Create(size as Int64) as boolean
- method Resize(Size as Int64) as boolean
- property Address as Int64
- property Memory as Memoryblock
- property Size as Int64
- class MemoryStorageMBS
- method Constructor(Size as Int64 = 0)
- method Destructor
- method MemoryValue(Offset as Int64, Assigns s as MemoryBlock)
- method MemoryValue(Offset as Int64, Size as Int64) as MemoryBlock
- method StringValue(Offset as Int64, Assigns s as String)
- method StringValue(Offset as Int64, Size as Int64) as String
- property MemoryValue as MemoryBlock
- property Size as Integer
- property SizeAllocated as Integer
- property StringValue as String
- class MemoryBlockMBS
- Class Extensions
- class Memoryblock
- method AddressMBS(offset as Int64 = 0) as UInt64
- method AddressPtrMBS(offset as Int64 = 0) as Ptr
- method AndBitsMBS(Second as memoryblock, Dest as memoryblock=nil) as memoryblock
- method AndBitsMBS(Second as memoryblock, Mask as Integer, Dest as memoryblock=nil) as memoryblock
- method AppendMBS(other as memoryblock) as memoryblock
- method BitwiseAndMBS(Second as MemoryBlock, Dest as MemoryBlock = nil) as MemoryBlock
- method BitwiseOrMBS(Second as MemoryBlock, Dest as MemoryBlock = nil) as MemoryBlock
- method BitwiseXOrMBS(Second as MemoryBlock, Dest as MemoryBlock = nil) as MemoryBlock
- method BytesEqualMBS(srcOfs as Integer, numBytes as Integer, destBlk as memoryBlock, destOfs as Integer) as Boolean
- method BytesZeroMBS(srcOfs as Integer, numBytes as Integer) as Boolean
- method ClearBitMBS(Bit as UInt64)
- method ConvertRGB12BitTo8BitMBS(Width as Integer)
- method CopyBytesFromMacHandleMBS(srcHandle as Integer, numBytes as Integer, destOfs as Integer)
- method CopyBytesFromMacPtrMBS(srcPtr as Ptr, numBytes as Integer, destOfs as Integer)
- method CopyBytesMBS(srcOfs as Integer, numBytes as Integer, destBlk as memoryBlock, destOfs as Integer)
- method CopyBytesMBS(srcOfs as Integer, numBytes as Integer, destOfs as Integer)
- method CopyBytesToMacHandleMBS(srcOfs as Integer, numBytes as Integer, destHandle as Integer)
- method CopyBytesToMacPtrMBS(srcOfs as Integer, numBytes as Integer, destPtr as Ptr)
- method CopyByteToUShortMBS(dest as memoryblock, SourceOffset as Integer, DestinationOffset as Integer, ByteCount as Integer, divisor as Integer)
- method CopyNthBitsMBS(source as memoryblock, SourceOffsetBits as Integer, DestinationOffsetBits as Integer, BitCount as Integer, StepCount as Integer, NumberOfSteps as Integer) as boolean
- method CopyNthBytesMBS(source as memoryblock, SourceOffsetBytes as Integer, DestinationOffsetBytes as Integer, ByteCount as Integer, StepCount as Integer, NumberOfSteps as Integer) as boolean
- method CopyUShortToByteMBS(dest as memoryblock, SourceOffset as Integer, DestinationOffset as Integer, ByteCount as Integer, divisor as Integer)
- method ExpandBitsMBS(dest as memoryblock, SourceByteCount as Integer, LowValue as Integer = 0, HighValue as Integer = 255) as boolean
- method ExtractBitsMBS(Mask as Integer, Dest as memoryblock=nil) as memoryblock
- method FillBytesMBS(offset as Integer, count as Integer, value as Integer)
- method FindByteMBS(srcOfs as Integer, numBytes as Integer, byteValue as Integer) as Integer
- method FindByteMBS(values() as UInt8, StartByteOffset as Integer = 0) as Integer
- method FindBytesMBS(srcOfs as Integer, maxBytes as Integer, target as memoryBlock, targOfs as Integer, targLen as Integer) as Integer
- method FindNotByteMBS(srcOfs as Integer, numBytes as Integer, byteValue as Integer) as Integer
- method FindStringMBS(srcOfs as Integer, maxBytes as Integer, target as String) as Integer
- method GetBitMBS(Bit as UInt64) as Integer
- method GetStringMBS(offset as Integer, numBytes as Integer) as String
- method InvertBytesMBS(offset as Integer, count as Integer)
- method IsBitSetMBS(Bit as UInt64) as Boolean
- method LeftMBS(length as Integer) as memoryblock
- method MaxMBS(firstMem as Ptr, secondMem as Ptr, BitSize as Integer = 8, Signed as Boolean = false, offsetByte as Integer = 0, lengthBytes as Integer = 0) as boolean
- method MidMBS(offset as Integer) as memoryblock
- method MidMBS(offset as Integer, length as Integer) as memoryblock
- method MinMBS(firstMem as Ptr, secondMem as Ptr, BitSize as Integer = 8, Signed as Boolean = false, offsetByte as Integer = 0, lengthBytes as Integer = 0) as boolean
- method MirrorBitsInBytesMBS(offsetByte as Integer, lengthByte as Integer)
- method MirrorBitsMBS(offsetBit as Integer, lengthBit as Integer)
- method MirrorBytesMBS(offsetByte as Integer = 0, lengthByte as Integer = -1)
- method MultiplyUInt16MBS(Factor as Double, offsetByte as Integer = 0, lengthBytes as Integer = 0, MultiplyOnlyOver as Integer = -1)
- method MultiplyUInt8MBS(Factor as Double, offsetByte as Integer = 0, lengthBytes as Integer = 0, MultiplyOnlyOver as Integer = -1)
- method RightMBS(length as Integer) as memoryblock
- method SetBitMBS(Bit as UInt64)
- method SetBitMBS(Bit as UInt64, Value as Boolean)
- method SetBitMBS(Bit as UInt64, Value as Integer)
- method SetStringMBS(str as String, offset as Integer)
- method SwapBytes16MBS(offset as Integer, numBytes as Integer)
- method SwapBytes32MBS(offset as Integer, numBytes as Integer)
- method SwapBytesMBS(offset as Integer, numBytes as Integer)
- class Memoryblock
Release notes
- Version 18.1
- Added getter/setter for MemoryStorageMBS.
- Added MemoryStorageMBS.Constructor.
The items on this page are in the following plugins: MBS Util Plugin.