Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

MemoryBlock class

Type Topic Version
class MemoryBlock
Function: Extends Realbasic's Memoryblock class.

Feedback, Comments & Corrections

  • 2 properties
  • 73 methods
    • 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 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 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 CRC_32ContMBS(offset as Integer, numBytes as Integer, prevCRC as UInt32) as UInt32
    • method CRC_32MBS(offset as Integer, numBytes as Integer) as UInt32
    • method CRC_CCITTContMBS(offset as Integer, numBytes as Integer, prevCRC as UInt32) as UInt32
    • method CRC_CCITTMBS(offset as Integer, numBytes as Integer) as UInt32
    • method CRC_DillonMBS(bitWidth as Integer, offset as Integer, numBytes as Integer) as String
    • method EndianS16_BtoLMBS(offset as Integer,count as Integer)
    • method EndianS16_BtoNMBS(offset as Integer,count as Integer)
    • method EndianS16_LtoBMBS(offset as Integer,count as Integer)
    • method EndianS16_LtoNMBS(offset as Integer,count as Integer)
    • method EndianS16_NtoBMBS(offset as Integer,count as Integer)
    • method EndianS16_NtoLMBS(offset as Integer,count as Integer)
    • method EndianS32_BtoLMBS(offset as Integer,count as Integer)
    • method EndianS32_BtoNMBS(offset as Integer,count as Integer)
    • method EndianS32_LtoBMBS(offset as Integer,count as Integer)
    • method EndianS32_LtoNMBS(offset as Integer,count as Integer)
    • method EndianS32_NtoBMBS(offset as Integer,count as Integer)
    • method EndianS32_NtoLMBS(offset as Integer,count as Integer)
    • method EndianSwap16MBS(offset as Integer,count as Integer)
    • method EndianSwap32MBS(offset as Integer,count as Integer)
    • method EndianU16_BtoLMBS(offset as Integer,count as Integer)
    • method EndianU16_BtoNMBS(offset as Integer,count as Integer)
    • method EndianU16_LtoBMBS(offset as Integer,count as Integer)
    • method EndianU16_LtoNMBS(offset as Integer,count as Integer)
    • method EndianU16_NtoBMBS(offset as Integer,count as Integer)
    • method EndianU16_NtoLMBS(offset as Integer,count as Integer)
    • method EndianU32_BtoLMBS(offset as Integer,count as Integer)
    • method EndianU32_BtoNMBS(offset as Integer,count as Integer)
    • method EndianU32_LtoBMBS(offset as Integer,count as Integer)
    • method EndianU32_LtoNMBS(offset as Integer,count as Integer)
    • method EndianU32_NtoBMBS(offset as Integer,count as Integer)
    • method EndianU32_NtoLMBS(offset as Integer,count 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 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 GetStringMBS(offset as Integer, numBytes as Integer) as String
    • method InvertBytesMBS(offset as Integer, count as Integer)
    • 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 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)

This class has no sub classes.

Some useful global functions for this class:

Some methods using this class:

  • ABAddressBookMBS.NewPersonWithVCardRepresentation(data as memoryblock) as ABPersonMBS
  • ABPersonMBS.Constructor(vCardData as Memoryblock)
  • ABPersonMBS.setImageData(data as Memoryblock) as boolean
  • ABPersonMBS.vCardRepresentation as Memoryblock
  • ACLEntryMBS.GIDtoUUID(GID as Integer) as memoryblock
  • ACLEntryMBS.UIDtoUUID(UID as Integer) as memoryblock
  • ACLEntryMBS.UUIDtoID(UUID as memoryblock, byref ID as Integer, byref Type as Integer) as boolean
  • AESMBS.Decrypt(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.DecryptCBC(idata as memoryblock, LengthBytes as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.DecryptCFB1(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.DecryptCFB1(idata as string, IVector as memoryblock=nil) as string
  • AESMBS.DecryptCFB128(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.DecryptCFB128(idata as string, IVector as memoryblock=nil) as string
  • AESMBS.DecryptCFB8(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.DecryptCFB8(idata as string, IVector as memoryblock=nil) as string
  • AESMBS.DecryptECB(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.Encrypt(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.EncryptCBC(idata as memoryblock, LengthBytes as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.EncryptCFB1(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
  • AESMBS.EncryptCFB1(idata as string, IVector as memoryblock=nil) as string
  • AESMBS.EncryptCFB128(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)

Some properties using for this class:

Some events for this class:


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


MediaKeysMBS   -   MemoryBlockMBS




Links
MBS FileMaker blog