Fst

cryptic.codec.Fst
object Fst extends Companion

The Fst object provides a mechanism for encoding and decoding using the FST (Fast Serialization) library.

It contains a default FST configuration and a given Codec for generic types.

Members:

  • fst: A default FST configuration instance created using FSTConfiguration.createDefaultConfiguration().

Methods:

  • codec[V]: A given that provides a Codec implementation for type V. This implementation includes encode and decode methods.
    • The encode method converts a value of type V into PlainText by encoding it to a byte array using the FST configuration instance.
    • The decode method attempts to convert a PlainText instance back into a value of type V by decoding the byte array using the FST configuration instance, wrapped in a Try.

Attributes

Graph
Supertypes
trait Companion
class Object
trait Matchable
class Any
Self type
Fst.type

Members list

Givens

Givens

given codec[V]: codec[V]

Extensions

Inherited extensions

extension [V](plainText: PlainText)
def decoded: Try[V]

Attributes

Inherited from:
Companion
extension [V](v: V)
def encoded: PlainText

Attributes

Inherited from:
Companion