sealed trait MultiplexedCodec extends AnyRef
A trait that enables custom handling for encoding/decoding sequences.
- Source
- MultiplexedCodec.scala
- Alphabetic
- By Inheritance
- MultiplexedCodec
- AnyRef
- Any
- by ValueEnrichedWithTuplingSupport
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to any2stringadd[MultiplexedCodec] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (MultiplexedCodec, B)
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to ArrowAssoc[MultiplexedCodec] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
a: MultiplexedCodec
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to ValueEnrichedWithTuplingSupport[MultiplexedCodec] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- Definition Classes
- ValueEnrichedWithTuplingSupport
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
decode[F[_], A](dec: Decoder[A], deMux: (BitVector) ⇒ (BitVector, BitVector))(buffer: BitVector)(implicit cbf: Factory[A, F[A]]): Attempt[DecodeResult[F[A]]]
Repeatedly decodes values of type
A
and returns a collection of the specified type.Repeatedly decodes values of type
A
and returns a collection of the specified type. UsesdeMux
repeatedly to obtain the stream of vectors to decode to a value of typeA
. Terminates when the next stream to decode is empty or upon first decoding error.Note: For large sequences, it may be necessary to compact bits in
deMux
.- dec
element decoder
- deMux
returns
(next, rest)
tuples wherenext
is input todec
yielding(value, remainder)
andremainder ++ rest
is the next input todeMux
- buffer
input bits
-
final
def
encode[A](enc: Encoder[A], mux: (BitVector, BitVector) ⇒ BitVector)(seq: Seq[A]): Attempt[BitVector]
Encodes all elements of the specified sequence and combines the results using
mux
, or returns the first encountered error.Encodes all elements of the specified sequence and combines the results using
mux
, or returns the first encountered error.- enc
element encoder
- mux
multiplexing function
- seq
elements to encode
-
def
ensuring(cond: (MultiplexedCodec) ⇒ Boolean, msg: ⇒ Any): MultiplexedCodec
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to Ensuring[MultiplexedCodec] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (MultiplexedCodec) ⇒ Boolean): MultiplexedCodec
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to Ensuring[MultiplexedCodec] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): MultiplexedCodec
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to Ensuring[MultiplexedCodec] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): MultiplexedCodec
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to Ensuring[MultiplexedCodec] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to StringFormat[MultiplexedCodec] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def sizeBound: SizeBound
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
~[B](b: B): (MultiplexedCodec, B)
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to ValueEnrichedWithTuplingSupport[MultiplexedCodec] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- Definition Classes
- ValueEnrichedWithTuplingSupport
-
def
→[B](y: B): (MultiplexedCodec, B)
- Implicit
- This member is added by an implicit conversion from MultiplexedCodec to ArrowAssoc[MultiplexedCodec] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc