Helper class to define an integer with a specific bit size. More...
#include <juce_BitPackingUtilities.h>
Public Types | |
enum | { bits = numBits, maxValue = static_cast<uint32> ((1ULL << numBits) - 1ULL) } |
Public Member Functions | |
IntegerWithBitSize () noexcept=default | |
IntegerWithBitSize (const IntegerWithBitSize &) noexcept=default | |
IntegerWithBitSize (uint32 v) noexcept | |
uint32 | get () const noexcept |
uint8 | getScaledToByte () const noexcept |
operator uint32 () const noexcept | |
IntegerWithBitSize & | operator= (const IntegerWithBitSize &) noexcept=default |
float | toBipolarFloat () const noexcept |
float | toUnipolarFloat () const noexcept |
Static Public Member Functions | |
static IntegerWithBitSize | fromBipolarFloat (float value) noexcept |
static IntegerWithBitSize | fromUnipolarFloat (float value) noexcept |
Public Attributes | |
uint32 | value = 0 |
Helper class to define an integer with a specific bit size.
{Blocks}
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinenoexcept |
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::handleButtonDownOrUp(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleConfigMessage(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleCustomMessage(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTouch(), and juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTouchWithVelocity().
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
uint32 juce::BlocksProtocol::IntegerWithBitSize< numBits >::value = 0 |
Referenced by juce::BlocksProtocol::IntegerWithBitSize< 8 >::fromBipolarFloat(), juce::BlocksProtocol::IntegerWithBitSize< 8 >::fromUnipolarFloat(), juce::BlocksProtocol::IntegerWithBitSize< 8 >::get(), juce::BlocksProtocol::IntegerWithBitSize< 8 >::getScaledToByte(), juce::BlocksProtocol::IntegerWithBitSize< 8 >::operator uint32(), juce::BlocksProtocol::Packed7BitArrayBuilder< maxPacketBytes >::operator<<(), juce::BlocksProtocol::Packed7BitArrayReader::readBits(), juce::BlocksProtocol::IntegerWithBitSize< 8 >::toBipolarFloat(), juce::BlocksProtocol::IntegerWithBitSize< 8 >::toUnipolarFloat(), and juce::BlocksProtocol::Packed7BitArrayBuilder< maxPacketBytes >::writeBits().