encode

fun <Codec : ContentCodec<T>, T> encode(codec: Codec, content: T): ByteArray