Use this if you want to control the KryoPool.
Use this if you want to control the KryoPool. This is thread-safe since the KryoPool is
A Injection to serialize an externalizer to bytes
A Injection to serialize an externalizer to bytes
This method isn't safe since calling get on an Externalizer[T] could still throw despite the inversion here having worked as advertized. Since it is at the point of the get we unpack the inner box.
An Injection to lift a type T into an Externalizer
A default KryoInjection that uses the ScalaKryoInstantiator with ByteArrayOutputStream as the backing buffer