All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.chill.VolatileByteRefSerializer.scala Maven / Gradle / Ivy

The newest version!
package com.twitter.chill

import scala.runtime.VolatileByteRef

class VolatileByteRefSerializer extends KSerializer[VolatileByteRef] {
  def write(kser: Kryo, out: Output, item: VolatileByteRef) =
    out.writeByte(item.elem)

  def read(kser: Kryo, in: Input, cls: Class[VolatileByteRef]) =
    new VolatileByteRef(in.readByte)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy