Packages

  • package root
    Definition Classes
    root
  • package scodec

    Combinator library for working with binary data.

    Combinator library for working with binary data.

    The primary abstraction of this library is Codec, which provides the ability to encode/decode values to/from binary.

    There are more general abstractions though, such as Encoder and Decoder. There's also GenCodec which extends both Encoder and Decoder but allows the types to vary. Given these more general abstractions, a Codec[A] can be represented as a GenCodec[A, A].

    The more general abstractions are important because they allow operations on codecs that would not otherwise be possible. For example, given a Codec[A], mapping a function A => B over the codec yields a GenCodec[A, B]. Without the more general abstractions, map is impossible to define (e.g., how would codec.map(f).encode(b) be implemented?). Given a GenCodec[A, B], the encoding functionality can be ignored by treating it as a Decoder[B], or the encoding type can be changed via contramap. If after further transformations, the two types to GenCodec are equal, we can reconstitute a Codec from the GenCodec by calling fuse.

    See the codecs package object for pre-defined codecs for many common data types and combinators for building larger codecs out of smaller ones.

    For the categorically minded, note the following:

    • Decoder is a monad
    • Encoder is a contravariant functor
    • GenCodec is a profunctor
    • Codec is an invariant functor
    Definition Classes
    root
  • package codecs

    Provides codecs for common types and combinators for building larger codecs.

    Provides codecs for common types and combinators for building larger codecs.

    Bits and Bytes Codecs

    The simplest of the provided codecs are those that encode/decode BitVectors and ByteVectors directly. These are provided by bits and bytes methods. These codecs encode all of the bits/bytes directly in to the result and decode *all* of the remaining bits/bytes in to the result value. That is, the result of decode always returns a empty bit vector for the remaining bits.

    Similarly, fixed size alternatives are provided by the bits(size) and bytes(size) methods, which encode a fixed number of bits/bytes (or error if not provided the correct size) and decoded a fixed number of bits/bytes (or error if that many bits/bytes are not available).

    There are more specialized codecs for working with bits, including ignore and constant.

    Numeric Codecs

    There are built-in codecs for Int, Long, Float, and Double.

    There are a number of predefined integral codecs named using the form:

    [u]int$${size}[L]

    where u stands for unsigned, size is replaced by one of 8, 16, 24, 32, 64, and L stands for little-endian. For each codec of that form, the type is Codec[Int] or Codec[Long] depending on the specified size. For example, int32 supports 32-bit big-endian 2s complement signed integers, and uint16L supports 16-bit little-endian unsigned integers. Note: uint64[L] are not provided because a 64-bit unsigned integer does not fit in to a Long.

    Additionally, methods of the form [u]int[L](size: Int) and [u]long[L](size: Int) exist to build arbitrarily sized codecs, within the limitations of Int and Long.

    IEEE 754 floating point values are supported by the float, floatL, double, and doubleL codecs.

    Miscellaneous Value Codecs

    In addition to the numeric codecs, there are built-in codecs for Boolean, String, and UUID.

    Boolean values are supported by the bool codecs.

    Combinators

    There are a number of methods provided that create codecs out of other codecs. These include simple combinators such as fixedSizeBits and variableSizeBits and advanced combinators such as discriminated, which provides its own DSL for building a large codec out of many small codecs. For a list of all combinators, see the Combinators section below.

    Cryptography Codecs

    There are codecs that support working with encrypted data (encrypted), digital signatures and checksums (fixedSizeSignature and variableSizeSignature). Additionally, support for java.security.cert.Certificates is provided by certificate and x509Certificate.

    Definition Classes
    scodec
  • ChecksumCodec
  • ChecksumFactory
  • ChecksumMismatch
  • CipherFactory
  • CoproductBuilderAuto
  • CoproductBuilderAutoDiscriminators
  • CoproductBuilderKeyDiscriminators
  • CoproductCodecBuilder
  • DeMultiplexer
  • DeriveHListElementAux
  • Discriminated
  • Discriminator
  • DiscriminatorCodec
  • DropUnits
  • DropUnitsLowPriority
  • FlattenLeftPairs
  • ImplicitCodecs
  • ImplicitCollections
  • ImplicitValues
  • InvertibleRemove
  • KnownDiscriminatorType
  • MultiplexedCodec
  • NeedDiscriminatorCodec
  • PaddedVarAlignedCodec
  • SignatureFactory
  • SignatureSigner
  • Signer
  • SignerFactory
  • StringEnrichedWithCodecContextSupport
  • ToCoproductCodecs
  • ToHListCodec
  • Tuple10Codec
  • Tuple11Codec
  • Tuple12Codec
  • Tuple3Codec
  • Tuple4Codec
  • Tuple5Codec
  • Tuple6Codec
  • Tuple7Codec
  • Tuple8Codec
  • Tuple9Codec
  • TupleCodec
  • ValueEnrichedWithTuplingSupport
  • VarIntCodec
  • VarLongCodec
  • implicits
  • literals
  • ~
c

scodec.codecs

Tuple6Codec

final class Tuple6Codec[A, B, C, D, E, F] extends Codec[(A, B, C, D, E, F)]

Source
TupleCodec.scala
Linear Supertypes
Codec[(A, B, C, D, E, F)], GenCodec[(A, B, C, D, E, F), (A, B, C, D, E, F)], Decoder[(A, B, C, D, E, F)], Encoder[(A, B, C, D, E, F)], AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Tuple6Codec
  2. Codec
  3. GenCodec
  4. Decoder
  5. Encoder
  6. AnyRef
  7. Any
Implicitly
  1. by Tuple2CodecSupport
  2. by EnrichedCoproductEncoder
  3. by ValueCodecEnrichedWithGenericSupport
  4. by ValueCodecEnrichedWithHListSupport
  5. by TransformSyntax
  6. by ValueEnrichedWithTuplingSupport
  7. by any2stringadd
  8. by StringFormat
  9. by Ensuring
  10. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tuple6Codec(A: Codec[A], B: Codec[B], C: Codec[C], D: Codec[D], E: Codec[E], F: Codec[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toany2stringadd[Tuple6Codec[A, B, C, D, E, F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Tuple6Codec[A, B, C, D, E, F], B)
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toArrowAssoc[Tuple6Codec[A, B, C, D, E, F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def :+:[B](left: Codec[B]): CoproductCodecBuilder[:+:[B, :+:[(A, B, C, D, E, F), CNil]], ::[Codec[B], ::[Codec[(A, B, C, D, E, F)], HNil]], :+:[B, :+:[(A, B, C, D, E, F), CNil]]]

    Supports creation of a coproduct codec.

    Supports creation of a coproduct codec. See scodec.codecs.CoproductCodecBuilder for details.

    Definition Classes
    Codec
  6. def ::[B](codecB: Codec[B]): Codec[::[B, ::[(A, B, C, D, E, F), HNil]]]

    When called on a Codec[A] where A is not a subytpe of HList, creates a new codec that encodes/decodes an HList of B :: A :: HNil.

    When called on a Codec[A] where A is not a subytpe of HList, creates a new codec that encodes/decodes an HList of B :: A :: HNil. For example,

    uint8 :: utf8

    has type Codec[Int :: String :: HNil]. uint8 :: utf8 }}}

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithHListSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithHListSupport
  7. def :~>:[B](codecB: Codec[B])(implicit ev: =:=[Unit, B]): Codec[::[(A, B, C, D, E, F), HNil]]

    When called on a Codec[A], returns a new codec that encodes/decodes B :: A :: HNil.

    When called on a Codec[A], returns a new codec that encodes/decodes B :: A :: HNil. HList equivalent of ~>.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithHListSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithHListSupport
  8. final def <~[B](codecB: Codec[B])(implicit ev: =:=[Unit, B]): Codec[(A, B, C, D, E, F)]

    Assuming B is Unit, creates a Codec[A] that: encodes the A followed by a unit; decodes an A followed by a unit and discards the decoded unit.

    Assuming B is Unit, creates a Codec[A] that: encodes the A followed by a unit; decodes an A followed by a unit and discards the decoded unit.

    Operator alias of dropRight.

    Definition Classes
    Codec
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def >>:~[L <: HList](f: ((A, B, C, D, E, F)) => Codec[L]): Codec[::[(A, B, C, D, E, F), L]]

    Creates a new codec that encodes/decodes an HList type of A :: L given a function A => Codec[L].

    Creates a new codec that encodes/decodes an HList type of A :: L given a function A => Codec[L]. This allows later parts of an HList codec to be dependent on earlier values. Operator alias for flatPrepend.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithHListSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithHListSupport
  11. final def >>~[B](f: ((A, B, C, D, E, F)) => Codec[B]): Codec[((A, B, C, D, E, F), B)]

    Returns a new codec that encodes/decodes a value of type (A, B) where the codec of B is dependent on A.

    Returns a new codec that encodes/decodes a value of type (A, B) where the codec of B is dependent on A. Operator alias for flatZip.

    Definition Classes
    Codec
  12. val a: Tuple6Codec[A, B, C, D, E, F]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueEnrichedWithTuplingSupport[Tuple6Codec[A, B, C, D, E, F]] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
    Definition Classes
    ValueEnrichedWithTuplingSupport
  13. def as[B](implicit as: Transformer[F, B]): Tuple6Codec[A, B, C, D, E, B]

    Transforms using implicitly available evidence that such a transformation is possible.

    Transforms using implicitly available evidence that such a transformation is possible.

    Typical transformations include converting:

    • an F[L] for some L <: HList to/from an F[CC] for some case class CC, where the types in the case class are aligned with the types in L
    • an F[C] for some C <: Coproduct to/from an F[SC] for some sealed class SC, where the component types in the coproduct are the leaf subtypes of the sealed class.
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  14. def asDecoder: Decoder[(A, B, C, D, E, F)]

    Gets this as a Decoder.

    Gets this as a Decoder.

    Definition Classes
    Decoder
  15. def asEncoder: Encoder[(A, B, C, D, E, F)]

    Gets this as an Encoder.

    Gets this as an Encoder.

    Definition Classes
    Encoder
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. final def compact: Codec[(A, B, C, D, E, F)]

    Converts this codec to a new codec that compacts the encoded bit vector before returning it.

    Converts this codec to a new codec that compacts the encoded bit vector before returning it.

    Definition Classes
    CodecGenCodecEncoder
  19. final def complete: Codec[(A, B, C, D, E, F)]

    Converts this codec to a new codec that fails decoding if there are remaining bits.

    Converts this codec to a new codec that fails decoding if there are remaining bits.

    Definition Classes
    CodecGenCodecDecoder
  20. final def consume[B](f: ((A, B, C, D, E, F)) => Codec[B])(g: (B) => (A, B, C, D, E, F)): Codec[B]

    Similar to flatZip except the A type is not visible in the resulting type -- the binary effects of the Codec[A] still occur though.

    Similar to flatZip except the A type is not visible in the resulting type -- the binary effects of the Codec[A] still occur though.

    Example usage:

    case class Flags(x: Boolean, y: Boolean, z: Boolean)
    (bool :: bool :: bool :: ignore(5)).consume { flgs =>
      conditional(flgs.x, uint8) :: conditional(flgs.y, uint8) :: conditional(flgs.z, uint8)
    } {
      case x :: y :: z :: HNil => Flags(x.isDefined, y.isDefined, z.isDefined) }
    }

    Note that when B is an HList, this method is equivalent to using flatPrepend and derive. That is, a.consume(f)(g) === a.flatPrepend(f).derive[A].from(g).

    Definition Classes
    Codec
  21. def contramap[C](f: (C) => (A, B, C, D, E, F)): GenCodec[C, (A, B, C, D, E, F)]

    Converts this GenCodec to a GenCodec[C, B] using the supplied C => A.

    Converts this GenCodec to a GenCodec[C, B] using the supplied C => A.

    Definition Classes
    GenCodecEncoder
  22. def decode(bits: BitVector): Attempt[DecodeResult[(A, B, C, D, E, F)]]

    Attempts to decode a value of type A from the specified bit vector.

    Attempts to decode a value of type A from the specified bit vector.

    bits

    bits to decode

    returns

    error if value could not be decoded or the remaining bits and the decoded value

    Definition Classes
    Tuple6CodecDecoder
  23. def decodeOnly[AA >: (A, B, C, D, E, F)]: Codec[AA]

    Converts this to a codec that fails encoding with an error.

    Converts this to a codec that fails encoding with an error.

    Definition Classes
    CodecDecoder
  24. final def decodeValue(bits: BitVector): Attempt[(A, B, C, D, E, F)]

    Attempts to decode a value of type A from the specified bit vector and discards the remaining bits.

    Attempts to decode a value of type A from the specified bit vector and discards the remaining bits.

    bits

    bits to decode

    returns

    error if value could not be decoded or the decoded value

    Definition Classes
    Decoder
  25. final def downcast[B <: (A, B, C, D, E, F)](implicit tb: Typeable[B]): Codec[B]

    Safely lifts this codec to a codec of a subtype.

    Safely lifts this codec to a codec of a subtype.

    When a supertype of B that is not a supertype of A is decoded, an decoding error is returned.

    Definition Classes
    Codec
  26. final def dropLeft[B](codecB: Codec[B])(implicit ev: =:=[Unit, (A, B, C, D, E, F)]): Codec[B]

    Assuming A is Unit, creates a Codec[B] that: encodes the unit followed by a B; decodes a unit followed by a B and discards the decoded unit.

    Assuming A is Unit, creates a Codec[B] that: encodes the unit followed by a B; decodes a unit followed by a B and discards the decoded unit.

    Definition Classes
    Codec
  27. final def dropRight[B](codecB: Codec[B])(implicit ev: =:=[Unit, B]): Codec[(A, B, C, D, E, F)]

    Assuming B is Unit, creates a Codec[A] that: encodes the A followed by a unit; decodes an A followed by a unit and discards the decoded unit.

    Assuming B is Unit, creates a Codec[A] that: encodes the A followed by a unit; decodes an A followed by a unit and discards the decoded unit.

    Definition Classes
    Codec
  28. def econtramap[C](f: (C) => Attempt[(A, B, C, D, E, F)]): GenCodec[C, (A, B, C, D, E, F)]

    Converts this GenCodec to a GenCodec[C, B] using the supplied C => Attempt[A].

    Converts this GenCodec to a GenCodec[C, B] using the supplied C => Attempt[A].

    Definition Classes
    GenCodecEncoder
  29. def emap[C](f: ((A, B, C, D, E, F)) => Attempt[C]): GenCodec[(A, B, C, D, E, F), C]

    Converts this GenCodec to a GenCodec[A, C] using the supplied B => Attempt[C].

    Converts this GenCodec to a GenCodec[A, C] using the supplied B => Attempt[C].

    Definition Classes
    GenCodecDecoder
  30. def encode(abcdef: (A, B, C, D, E, F)): Attempt[BitVector]

    Attempts to encode the specified value in to a bit vector.

    Attempts to encode the specified value in to a bit vector.

    returns

    error or binary encoding of the value

    Definition Classes
    Tuple6CodecEncoder
  31. def encodeOnly: Codec[(A, B, C, D, E, F)]

    Converts this to a codec that fails decoding with an error.

    Converts this to a codec that fails decoding with an error.

    Definition Classes
    Encoder
  32. def ensuring(cond: (Tuple6Codec[A, B, C, D, E, F]) => Boolean, msg: => Any): Tuple6Codec[A, B, C, D, E, F]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toEnsuring[Tuple6Codec[A, B, C, D, E, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: (Tuple6Codec[A, B, C, D, E, F]) => Boolean): Tuple6Codec[A, B, C, D, E, F]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toEnsuring[Tuple6Codec[A, B, C, D, E, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. def ensuring(cond: Boolean, msg: => Any): Tuple6Codec[A, B, C, D, E, F]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toEnsuring[Tuple6Codec[A, B, C, D, E, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  35. def ensuring(cond: Boolean): Tuple6Codec[A, B, C, D, E, F]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toEnsuring[Tuple6Codec[A, B, C, D, E, F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  36. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  38. final def exmap[B](f: ((A, B, C, D, E, F)) => Attempt[B], g: (B) => Attempt[(A, B, C, D, E, F)]): Codec[B]

    Transforms using two functions, A => Attempt[B] and B => Attempt[A].

    Transforms using two functions, A => Attempt[B] and B => Attempt[A].

    Definition Classes
    Codec
  39. def exmapc[B](f: (F) => Attempt[B])(g: (B) => Attempt[F]): Tuple6Codec[A, B, C, D, E, B]

    Curried version of exmap.

    Curried version of exmap.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  40. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  41. def flatMap[B](f: ((A, B, C, D, E, F)) => Decoder[B]): Decoder[B]

    Converts this decoder to a Decoder[B] using the supplied A => Decoder[B].

    Converts this decoder to a Decoder[B] using the supplied A => Decoder[B].

    Definition Classes
    Decoder
  42. def flatPrepend[L <: HList](f: ((A, B, C, D, E, F)) => Codec[L]): Codec[::[(A, B, C, D, E, F), L]]

    Creates a new codec that encodes/decodes an HList type of A :: L given a function A => Codec[L].

    Creates a new codec that encodes/decodes an HList type of A :: L given a function A => Codec[L]. This allows later parts of an HList codec to be dependent on earlier values.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithHListSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithHListSupport
  43. final def flatZip[B](f: ((A, B, C, D, E, F)) => Codec[B]): Codec[((A, B, C, D, E, F), B)]

    Returns a new codec that encodes/decodes a value of type (A, B) where the codec of B is dependent on A.

    Returns a new codec that encodes/decodes a value of type (A, B) where the codec of B is dependent on A.

    Definition Classes
    Codec
  44. def flatZipHList[B](f: ((A, B, C, D, E, F)) => Codec[B]): Codec[::[(A, B, C, D, E, F), ::[B, HNil]]]

    Creates a new codec that encodes/decodes an HList type of A :: B :: HNil given a function A => Codec[B].

    Creates a new codec that encodes/decodes an HList type of A :: B :: HNil given a function A => Codec[B]. If B is an HList type, consider using flatPrepend instead, which avoids nested HLists. This is the direct HList equivalent of flatZip.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithHListSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithHListSupport
  45. final def flattenLeftPairs(implicit f: FlattenLeftPairs[(A, B, C, D, E, F)]): Codec[Out]

    Converts this codec to an HList based codec by flattening all left nested pairs.

    Converts this codec to an HList based codec by flattening all left nested pairs. For example, flattenLeftPairs on a Codec[(((A, B), C), D)] results in a Codec[A :: B :: C :: D :: HNil]. This is particularly useful when combined with ~, ~>, and <~.

    Definition Classes
    Codec
  46. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toStringFormat[Tuple6Codec[A, B, C, D, E, F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  47. final def fuse[AA <: (A, B, C, D, E, F), BB >: (A, B, C, D, E, F)](implicit ev: =:=[BB, AA]): Codec[BB]

    Converts this generalized codec in to a non-generalized codec assuming A and B are the same type.

    Converts this generalized codec in to a non-generalized codec assuming A and B are the same type.

    Definition Classes
    GenCodec
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  50. final def hlist: Codec[::[(A, B, C, D, E, F), HNil]]

    Lifts this codec in to a codec of a singleton hlist.

    Lifts this codec in to a codec of a singleton hlist.

    Definition Classes
    Codec
  51. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  52. def map[C](f: ((A, B, C, D, E, F)) => C): GenCodec[(A, B, C, D, E, F), C]

    Converts this GenCodec to a GenCodec[A, C] using the supplied B => C.

    Converts this GenCodec to a GenCodec[A, C] using the supplied B => C.

    Definition Classes
    GenCodecDecoder
  53. final def narrow[B](f: ((A, B, C, D, E, F)) => Attempt[B], g: (B) => (A, B, C, D, E, F)): Codec[B]

    Transforms using two functions, A => Attempt[B] and B => A.

    Transforms using two functions, A => Attempt[B] and B => A.

    The supplied functions form an injection from B to A. Hence, this method converts from a larger to a smaller type. Hence, the name narrow.

    Definition Classes
    Codec
  54. def narrowc[B](f: (F) => Attempt[B])(g: (B) => F): Tuple6Codec[A, B, C, D, E, B]

    Curried version of narrow.

    Curried version of narrow.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  58. final def pairedWith[B](codecB: Codec[B]): Codec[((A, B, C, D, E, F), B)]

    Creates a Codec[(A, B)] that first encodes/decodes an A followed by a B.

    Creates a Codec[(A, B)] that first encodes/decodes an A followed by a B.

    Definition Classes
    Codec
  59. def pcontramap[C](f: (C) => Option[(A, B, C, D, E, F)]): GenCodec[C, (A, B, C, D, E, F)]

    Converts this GenCodec to a GenCodec[C, B] using the supplied partial function from C to A.

    Converts this GenCodec to a GenCodec[C, B] using the supplied partial function from C to A. The encoding will fail for any C that f maps to None.

    Definition Classes
    GenCodecEncoder
  60. def polyxmap[B](p: Poly, q: Poly)(implicit aToB: Aux[p.type, ::[(A, B, C, D, E, F), HNil], B], bToA: Aux[q.type, ::[B, HNil], (A, B, C, D, E, F)]): Codec[B]

    Polymorphic function version of xmap.

    Polymorphic function version of xmap.

    When called on a Codec[A] where A is not a subytpe of HList, returns a new codec that's the result of xmapping with p and q, using p to convert from A to B and using q to convert from B to A.

    p

    polymorphic function that converts from A to B

    q

    polymorphic function that converts from B to A

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithGenericSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithGenericSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithGenericSupport
  61. def polyxmap1[B](p: Poly)(implicit aToB: Aux[p.type, ::[(A, B, C, D, E, F), HNil], B], bToA: Aux[p.type, ::[B, HNil], (A, B, C, D, E, F)]): Codec[B]

    Polymorphic function version of xmap that uses a single polymorphic function in both directions.

    Polymorphic function version of xmap that uses a single polymorphic function in both directions.

    When called on a Codec[A] where A is not a subytpe of HList, returns a new codec that's the result of xmapping with p for both forward and reverse directions.

    p

    polymorphic function that converts from A to B and from B to A

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithGenericSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithGenericSupport in scodec.
    Definition Classes
    ValueCodecEnrichedWithGenericSupport
  62. def selectEncoder[A](implicit inj: Inject[Coproduct with (A, B, C, D, E, F), A]): Encoder[A]

    When called on a Encoder[C] where C is a coproduct containing type A, converts to an Encoder[A].

    When called on a Encoder[C] where C is a coproduct containing type A, converts to an Encoder[A].

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toEnrichedCoproductEncoder[Coproduct with (A, B, C, D, E, F)] performed by method EnrichedCoproductEncoder in scodec.
    Definition Classes
    EnrichedCoproductEncoder
  63. def sizeBound: SizeBound

    Provides a bound on the size of successfully encoded values.

    Provides a bound on the size of successfully encoded values.

    Definition Classes
    Tuple6CodecEncoder
  64. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  65. def toField[K]: Codec[FieldType[K, (A, B, C, D, E, F)]]

    Lifts this codec to a codec of a shapeless field -- allowing it to be used in records and unions.

    Lifts this codec to a codec of a shapeless field -- allowing it to be used in records and unions.

    Definition Classes
    Codec
  66. def toFieldWithContext[K <: Symbol](k: K): Codec[FieldType[K, (A, B, C, D, E, F)]]

    Lifts this codec to a codec of a shapeless field -- allowing it to be used in records and unions.

    Lifts this codec to a codec of a shapeless field -- allowing it to be used in records and unions. The specified key is pushed in to the context of any errors that are returned from the resulting codec.

    Definition Classes
    Codec
  67. def toString(): String
    Definition Classes
    Tuple6Codec → AnyRef → Any
  68. final def unit(zero: (A, B, C, D, E, F)): Codec[Unit]

    Converts this to a Codec[Unit] that encodes using the specified zero value and decodes a unit value when this codec decodes an A successfully.

    Converts this to a Codec[Unit] that encodes using the specified zero value and decodes a unit value when this codec decodes an A successfully.

    Definition Classes
    Codec
  69. final def upcast[B >: (A, B, C, D, E, F)](implicit ta: Typeable[(A, B, C, D, E, F)]): Codec[B]

    Safely lifts this codec to a codec of a supertype.

    Safely lifts this codec to a codec of a supertype.

    When a subtype of B that is not a subtype of A is passed to encode, an encoding error is returned.

    Definition Classes
    Codec
  70. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  73. final def widen[B](f: ((A, B, C, D, E, F)) => B, g: (B) => Attempt[(A, B, C, D, E, F)]): Codec[B]

    Transforms using two functions, A => B and B => Attempt[A].

    Transforms using two functions, A => B and B => Attempt[A].

    The supplied functions form an injection from A to B. Hence, this method converts from a smaller to a larger type. Hence, the name widen.

    Definition Classes
    Codec
  74. def widenAs[X](to: (A, B, C, D, E, F) => X, from: (X) => Option[(A, B, C, D, E, F)]): Codec[X]
  75. def widenOpt[B](f: (F) => B, g: (B) => Option[F]): Tuple6Codec[A, B, C, D, E, B]

    Transforms using two functions, A => B and B => Option[A].

    Transforms using two functions, A => B and B => Option[A].

    Particularly useful when combined with case class apply/unapply. E.g., widenOpt(fa, Foo.apply, Foo.unapply).

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  76. def widenOptc[B](f: (F) => B)(g: (B) => Option[F]): Tuple6Codec[A, B, C, D, E, B]

    Curried version of widenOpt.

    Curried version of widenOpt.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  77. def widenc[B](f: (F) => B)(g: (B) => Attempt[F]): Tuple6Codec[A, B, C, D, E, B]

    Curried version of widen.

    Curried version of widen.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  78. final def withContext(context: String): Codec[(A, B, C, D, E, F)]

    Creates a new codec that is functionally equivalent to this codec but pushes the specified context string in to any errors returned from encode or decode.

    Creates a new codec that is functionally equivalent to this codec but pushes the specified context string in to any errors returned from encode or decode.

    Definition Classes
    Codec
  79. final def withToString(str: => String): Codec[(A, B, C, D, E, F)]

    Creates a new codec that is functionally equivalent to this codec but returns the specified string from toString.

    Creates a new codec that is functionally equivalent to this codec but returns the specified string from toString.

    Definition Classes
    Codec
  80. final def xmap[B](f: ((A, B, C, D, E, F)) => B, g: (B) => (A, B, C, D, E, F)): Codec[B]

    Transforms using the isomorphism described by two functions, A => B and B => A.

    Transforms using the isomorphism described by two functions, A => B and B => A.

    Definition Classes
    Codec
  81. def xmapc[B](f: (F) => B)(g: (B) => F): Tuple6Codec[A, B, C, D, E, B]

    Curried version of xmap.

    Curried version of xmap.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
  82. final def ~[B](codecB: Codec[B]): Codec[((A, B, C, D, E, F), B)]

    Creates a Codec[(A, B)] that first encodes/decodes an A followed by a B.

    Creates a Codec[(A, B)] that first encodes/decodes an A followed by a B.

    Operator alias for pairedWith.

    Definition Classes
    Codec
  83. final def ~>[B](codecB: Codec[B])(implicit ev: =:=[Unit, (A, B, C, D, E, F)]): Codec[B]

    Assuming A is Unit, creates a Codec[B] that: encodes the unit followed by a B; decodes a unit followed by a B and discards the decoded unit.

    Assuming A is Unit, creates a Codec[B] that: encodes the unit followed by a B; decodes a unit followed by a B and discards the decoded unit.

    Operator alias of dropLeft.

    Definition Classes
    Codec
  84. def ~~[G](G: Codec[G]): Tuple7Codec[A, B, C, D, E, F, G]

Shadowed Implicit Value Members

  1. def exmap[B](f: (F) => Attempt[B], g: (B) => Attempt[F]): Tuple6Codec[A, B, C, D, E, B]

    Transforms using two functions, A => Attempt[B] and B => Attempt[A].

    Transforms using two functions, A => Attempt[B] and B => Attempt[A].

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tuple6Codec: TransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F]).exmap(f, g)
    Definition Classes
    TransformSyntax
  2. def narrow[B](f: (F) => Attempt[B], g: (B) => F): Tuple6Codec[A, B, C, D, E, B]

    Transforms using two functions, A => Attempt[B] and B => A.

    Transforms using two functions, A => Attempt[B] and B => A.

    The supplied functions form an injection from B to A. Hence, this method converts from a larger to a smaller type. Hence, the name narrow.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tuple6Codec: TransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F]).narrow(f, g)
    Definition Classes
    TransformSyntax
  3. val self: Codec[(A, B, C, D, E, F)]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTuple2CodecSupport[(A, B, C, D, E, F)] performed by method Tuple2CodecSupport in scodec.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tuple6Codec: Tuple2CodecSupport[(A, B, C, D, E, F)]).self
    Definition Classes
    Tuple2CodecSupport
  4. val self: Encoder[Coproduct with (A, B, C, D, E, F)]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toEnrichedCoproductEncoder[Coproduct with (A, B, C, D, E, F)] performed by method EnrichedCoproductEncoder in scodec.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tuple6Codec: EnrichedCoproductEncoder[Coproduct with (A, B, C, D, E, F)]).self
    Definition Classes
    EnrichedCoproductEncoder
  5. val self: Codec[(A, B, C, D, E, F)]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithGenericSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithGenericSupport in scodec.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tuple6Codec: ValueCodecEnrichedWithGenericSupport[(A, B, C, D, E, F)]).self
    Definition Classes
    ValueCodecEnrichedWithGenericSupport
  6. val self: Codec[(A, B, C, D, E, F)]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)] performed by method ValueCodecEnrichedWithHListSupport in scodec.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tuple6Codec: ValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)]).self
    Definition Classes
    ValueCodecEnrichedWithHListSupport
  7. val self: Tuple6Codec[A, B, C, D, E, F]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (tuple6Codec: TransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F]).self
    Definition Classes
    TransformSyntax
  8. def widen[B](f: (F) => B, g: (B) => Attempt[F]): Tuple6Codec[A, B, C, D, E, B]

    Transforms using two functions, A => B and B => Attempt[A].

    Transforms using two functions, A => B and B => Attempt[A].

    The supplied functions form an injection from A to B. Hence, this method converts from a smaller to a larger type. Hence, the name widen.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tuple6Codec: TransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F]).widen(f, g)
    Definition Classes
    TransformSyntax
  9. def xmap[B](f: (F) => B, g: (B) => F): Tuple6Codec[A, B, C, D, E, B]

    Transforms using the isomorphism described by two functions, A => B and B => A.

    Transforms using the isomorphism described by two functions, A => B and B => A.

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tuple6Codec: TransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F]).xmap(f, g)
    Definition Classes
    TransformSyntax
  10. def ~[B](b: B): (Tuple6Codec[A, B, C, D, E, F], B)
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toValueEnrichedWithTuplingSupport[Tuple6Codec[A, B, C, D, E, F]] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tuple6Codec: ValueEnrichedWithTuplingSupport[Tuple6Codec[A, B, C, D, E, F]]).~(b)
    Definition Classes
    ValueEnrichedWithTuplingSupport
  11. def ~~[B](B: Codec[B]): TupleCodec[(A, B, C, D, E, F), B]
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTuple2CodecSupport[(A, B, C, D, E, F)] performed by method Tuple2CodecSupport in scodec.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tuple6Codec: Tuple2CodecSupport[(A, B, C, D, E, F)]).~~(B)
    Definition Classes
    Tuple2CodecSupport

Deprecated Value Members

  1. def pxmap[B](f: (F) => B, g: (B) => Option[F]): Tuple6Codec[A, B, C, D, E, B]

    Transforms using two functions, A => B and B => Option[A].

    Transforms using two functions, A => B and B => Option[A].

    Particularly useful when combined with case class apply/unapply. E.g., pxmap(fa, Foo.apply, Foo.unapply).

    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toTransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F] performed by method TransformSyntax in scodec.This conversion will take place only if an implicit value of type Transform[[F]Tuple6Codec[A, B, C, D, E, F]] is in scope.
    Definition Classes
    TransformSyntax
    Annotations
    @deprecated
    Deprecated

    (Since version 1.7.0) Use widenOpt instead

  2. def [B](y: B): (Tuple6Codec[A, B, C, D, E, F], B)
    Implicit
    This member is added by an implicit conversion from Tuple6Codec[A, B, C, D, E, F] toArrowAssoc[Tuple6Codec[A, B, C, D, E, F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Codec[(A, B, C, D, E, F)]

Inherited from GenCodec[(A, B, C, D, E, F), (A, B, C, D, E, F)]

Inherited from Decoder[(A, B, C, D, E, F)]

Inherited from Encoder[(A, B, C, D, E, F)]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion Tuple2CodecSupport fromTuple6Codec[A, B, C, D, E, F] to Tuple2CodecSupport[(A, B, C, D, E, F)]

Inherited by implicit conversion EnrichedCoproductEncoder fromTuple6Codec[A, B, C, D, E, F] to EnrichedCoproductEncoder[Coproduct with (A, B, C, D, E, F)]

Inherited by implicit conversion ValueCodecEnrichedWithGenericSupport fromTuple6Codec[A, B, C, D, E, F] to ValueCodecEnrichedWithGenericSupport[(A, B, C, D, E, F)]

Inherited by implicit conversion ValueCodecEnrichedWithHListSupport fromTuple6Codec[A, B, C, D, E, F] to ValueCodecEnrichedWithHListSupport[(A, B, C, D, E, F)]

Inherited by implicit conversion TransformSyntax fromTuple6Codec[A, B, C, D, E, F] to TransformSyntax[[F]Tuple6Codec[A, B, C, D, E, F], F]

Inherited by implicit conversion ValueEnrichedWithTuplingSupport fromTuple6Codec[A, B, C, D, E, F] to ValueEnrichedWithTuplingSupport[Tuple6Codec[A, B, C, D, E, F]]

Inherited by implicit conversion any2stringadd fromTuple6Codec[A, B, C, D, E, F] to any2stringadd[Tuple6Codec[A, B, C, D, E, F]]

Inherited by implicit conversion StringFormat fromTuple6Codec[A, B, C, D, E, F] to StringFormat[Tuple6Codec[A, B, C, D, E, F]]

Inherited by implicit conversion Ensuring fromTuple6Codec[A, B, C, D, E, F] to Ensuring[Tuple6Codec[A, B, C, D, E, F]]

Inherited by implicit conversion ArrowAssoc fromTuple6Codec[A, B, C, D, E, F] to ArrowAssoc[Tuple6Codec[A, B, C, D, E, F]]

Primary Members

Basic Combinators

Tuple Support

HList Support

Coproduct Support

Generic Support

Ungrouped