object ChecksumCodec
Provides methods to create a "checksum codec" (encodes a bit-range to a bit-checksum and decodes bits to a bit-range).
- Source
- ChecksumCodec.scala
- Alphabetic
- By Inheritance
- ChecksumCodec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(length: Int, f: (ByteVector) ⇒ ByteVector, range: Decoder[Int], padding: Int): Codec[BitVector]
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
- length
the byte-length of the checksum
- f
computes byte-checksum
- range
decodes the (un-padded) size of a byte-range
- padding
size padding for the byte-range
-
def
apply(length: Long, f: (BitVector) ⇒ BitVector, range: Decoder[Long], padding: Long): Codec[BitVector]
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
- length
the bit-length of the checksum
- f
computes bit-checksum
- range
decodes the (un-padded) size of a bit-range
- padding
size padding for the bit-range
-
def
apply(encoder: Encoder[ByteVector], range: Decoder[Int], padding: Int): Codec[BitVector]
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
- encoder
encodes a byte-range to a byte-checksum
- range
decodes the (un-padded) size of a byte-range
- padding
size padding for the byte-range
-
def
apply(encoder: Encoder[BitVector], range: Decoder[Long], padding: Long): Codec[BitVector]
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
- encoder
encodes a bit-range to a bit-checksum
- range
decodes the (un-padded) size of a bit-range
- padding
size padding for the bit-range
-
def
apply(encoder: Encoder[BitVector], range: Decoder[Long]): Codec[BitVector]
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to a bit-checksum and decodes bits to a bit-range.
- encoder
encodes a bit-range to a bit-checksum
- range
decodes the size of a bit-range
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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] )
-
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()
-
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
xor(length: Int, range: Decoder[Int], padding: Int): Codec[BitVector]
Returns a codec that encodes a bit-range to an XORed bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to an XORed bit-checksum and decodes bits to a bit-range.
- length
the byte-length of the checksum
- range
decodes the (un-padded) size of a byte-range
- padding
size padding for the byte-range
-
def
xor(length: Long, range: Decoder[Long], padding: Long): Codec[BitVector]
Returns a codec that encodes a bit-range to an XORed bit-checksum and decodes bits to a bit-range.
Returns a codec that encodes a bit-range to an XORed bit-checksum and decodes bits to a bit-range.
- length
the bit-length of the checksum
- range
decodes the (un-padded) size of a bit-range
- padding
size padding for the bit-range