CopyFieldToBits (class MKI_BITFIELD) New in Version 6.50 |
www.CAD6.com |
C++ Syntaxvoid MKI_BITFIELD::CopyFieldToBits( const unsigned f_unSourceBit, BYTE* f_pDestin, const unsigned f_unDestinBit, const unsigned f_unBitCount ) const;
Copies BitCount bits starting with the given bit number SourceBit of the the bitfield to the byte array Destin, starting there with the given bit number DestinBit.
ParametersSourceBit [const unsigned] First bit of this to copy. Bit 0 is the highest bit in the first byte, bit 7 is the lowest bit in the first byte, bit 8 is the highest bit in the second byte, and so on. Destin [BYTE*] Address of a sequence of bytes. DestinBit [const unsigned] First bit of Destin to copy to. Bit 0 is the highest bit in the first byte, bit 7 is the lowest bit in the first byte, bit 8 is the highest bit in the second byte, and so on. BitCount [const unsigned] Number of bits to copy.
CommentPlease be careful with this method since it does not check for any boundaries!
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH