Bounds the size, in bits, of the binary encoding of a codec -- i.e., it provides a lower bound and an upper bound on the size of bit vectors returned as a result of encoding.
- Value parameters:
- lowerBound
Minimum number of bits
- upperBound
Maximum number of bits
- Companion:
- object
- Source:
- SizeBound.scala
Value members
Concrete methods
Multiplies this size bound by the specified scalar.
Multiplies this size bound by the specified scalar.
- Source:
- SizeBound.scala
Adds the specified size bound to this size bound.
Adds the specified size bound to this size bound.
- Source:
- SizeBound.scala
Returns a new bound with the upper bound removed.
Returns a new bound with the upper bound removed.
- Source:
- SizeBound.scala
Returns a new bound with the lower bound reset to 0.
Returns a new bound with the lower bound reset to 0.
- Source:
- SizeBound.scala
Returns the exact size of the encoded bits. Defined when the lower bound is equal to the upper bound.
Returns the exact size of the encoded bits. Defined when the lower bound is equal to the upper bound.
- Source:
- SizeBound.scala
ORs the specified size bound with this size bound, resulting in a new bound which has the minimum lower bound and maximum upper bound.
ORs the specified size bound with this size bound, resulting in a new bound which has the minimum lower bound and maximum upper bound.
- Source:
- SizeBound.scala