endless.transaction.BinaryCodec.scala Maven / Gradle / Ivy
The newest version!
package endless.transaction
import endless.core.protocol.{Decoder, Encoder}
/** Type class for encoding and decoding entity IDs to and from binary */
trait BinaryCodec[A] extends Encoder[A] with Decoder[A]
object BinaryCodec {
def apply[A](implicit codec: BinaryCodec[A]): BinaryCodec[A] = codec
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy