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