ReserializableByteStringSerializer
class ReserializableByteStringSerializer<T>(dataSerializer: KSerializer<T>) : KSerializer<ByteStringWrapper<T>> (source)
Like ByteStringWrapperSerializer, but writes ByteStringWrapper.serialized as it is if present, so a decoded value is serialized again to the same bytes, and only encodes ByteStringWrapper.value without it.