Packages

package tag

Use Shapeless tags to refine int/long values as tag.Signed, tag.Unsigned or tag.Fixed.

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. tag
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type @@[+T, U] = T with Tagged[U]

    Shadow shapeless tag type

  2. sealed trait Fixed extends AnyRef

    Always four/height bytes.

    Always four/height bytes. More efficient than uint32/uint64 if values are often greater than 228/264 (fixed32, fixed64)

  3. sealed trait Signed extends AnyRef

    Uses variable-length encoding.

    Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32/64s (sint32, sint64)

  4. sealed trait Unsigned extends AnyRef

    Uses variable-length encoding for Unsigned values (uint32, uint64).

Value Members

  1. def fixed[T](t: T)(implicit arg0: NumericTagRestriction[T]): @@[T, Fixed]

    Tag a numeric field with a Fixed tag

  2. def signed[T](t: T)(implicit arg0: NumericTagRestriction[T]): @@[T, Signed]

    Tag a numeric field with a Signed tag

  3. def signedFixed[T](t: T)(implicit arg0: NumericTagRestriction[T]): @@[T, Signed with Fixed]

    Tag a numeric field with a Signed and Fixed tag

  4. def unsigned[T](t: T)(implicit arg0: NumericTagRestriction[T]): @@[T, Unsigned]

    Tag a numeric field with a Unsigned tag

Inherited from AnyRef

Inherited from Any

Ungrouped