UtilsLib Xojo plugin

EinhugurBitwiseModule.CopyBitsTo Method (console safe)

Use this method to copy a block of bits from one MemoryBlock to another.

CopyBitsTo(
   srcByteOffset as Integer,
   srcBitOffset as Integer,
   dest as MemoryBlock,
   dstByteOffset as Integer,
   dstBitOffset as Integer,
   bitCount as Integer)

Parameters

srcByteOffset
This parameter can be used to specify byte offset into the source MemoryBlock.
srcBitOffset
This parameter can be used to specify bit offset into the source MemoryBlock.
dest
The destination MemoryBlock.
dstByteOffset
This parameter can be used to specify byte offset into the destination MemoryBlock.
dstBitOffset
This parameter can be used to specify bit offset into the destination MemoryBlock.
bitCount
The count of bits to copy.

Remarks

This method is not bounds checked in any way. You are responsible for making sure you don't go out of bounds.

Note that this is bitwise copy, not byte wise and is because of that not very efficient. You can for example copy 5 bits.

This method is extension method for MemoryBlocks and is available by adding a MemoryBlock parameter in front of other parameters.

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM

    Unsupported Platforms:

  • MacOS X Carbon

    See Also

    EinhugurBitwiseModule Module