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

com.zink.scala.fly.FieldCodec.scala Maven / Gradle / Ivy

Go to download

Fly Scala is a scala client library for working with a Fly Server. Fly is an object space server that is specifically written to provide lightweight object based messaging between computers running on a network. This distribution does not contain the server, please go to http://www.flyobjectspace.com/ for the server that matches the version of Fly Scala you want to use.

The newest version!
package com.zink.scala.fly

trait FieldCodec {

  /**
   * Encode the given object into any byte array required
   * @param field
   * @return the encoded field as a byte array
   */
  def writeField(field: AnyRef): Array[Byte]

  /**
   * Decode the byte array to create the object field
   * @param fieldBytes
   * @return the object created from the byte arrays
   */
  def readField(fieldBytes: Array[Byte]): Option[AnyRef]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy