| 
    PLCnext API Documentation 25.6.0.37
    
   | 
 
This class represents a size of a variable More...
#include <BitSize.hpp>
Public Member Functions | |
| BitSize (uint32 bytes=0, uint32 bits=0) | |
| Constructs a BitSize object More... | |
| BitSize (const BitSize &arg) | |
| The default copy constructor. | |
| BitSize (BitSize &&arg) noexcept | |
| The default move constructor. | |
| BitSize & | operator= (const BitSize &arg) | 
| The default copy-assignment operator. | |
| BitSize & | operator= (BitSize &&arg) noexcept | 
| The default move-assignment operator. | |
| ~BitSize (void) | |
| The default destructor. | |
| BitSize & | operator+= (const BitSize &rhs) | 
| The add-assign operator. More... | |
| uint32 | GetByteSize () const | 
| Returns the size in bytes More... | |
| uint32 | GetBitSize () const | 
| Returns the remaining bits More... | |
| uint64 | GetTotalBitSize (void) const | 
| Returns the total bit size (byte size * 8 + bit size); More... | |
| size_t | GetFullByteSize (void) const | 
| Returns the full byte size needed to store all bits. (e.g. 19 total bits returns 3 bytes).  More... | |
| Impl & | GetImpl (void) | 
| For internal use only. | |
| const Impl & | GetImpl (void) const | 
Static Public Member Functions | |
| static const BitSize & | GetNull (void) | 
| Gets the zeroed null value. More... | |
| static const BitSize & | GetBit (void) | 
| Gets a one-bit value. More... | |
This class represents a size of a variable
The size might be smaller than one byte.
      
  | 
  explicit | 
Constructs a BitSize object
| bytes | Number of bytes | 
| bits | Number of bits, 0-7 | 
| ArgumentException | Thrown if bits > 7 | 
      
  | 
  static | 
Gets a one-bit value.
| uint32 Arp::Plc::Meta::Commons::BitSize::GetBitSize | ( | ) | const | 
Returns the remaining bits
| uint32 Arp::Plc::Meta::Commons::BitSize::GetByteSize | ( | ) | const | 
Returns the size in bytes
| size_t Arp::Plc::Meta::Commons::BitSize::GetFullByteSize | ( | void | ) | const | 
Returns the full byte size needed to store all bits. (e.g. 19 total bits returns 3 bytes).
      
  | 
  static | 
Gets the zeroed null value.
| uint64 Arp::Plc::Meta::Commons::BitSize::GetTotalBitSize | ( | void | ) | const | 
Returns the total bit size (byte size * 8 + bit size);
The add-assign operator.
| rhs | The right operand to add. |