Module com.s8.api

Interface S8Serializable

All Known Subinterfaces:
S8ExplicitSerializable

public interface S8Serializable
Can parse from a ByteInflow and compose to a ByteOutflow.
Author:
Pierre Convert Copyright (C) 2022, Pierre Convert. All rights reserved.
  • Method Details

    • serialize

      void serialize(ByteOutflow outflow) throws IOException
      Serialize this object in the outflow passed as argument.
      Parameters:
      outflow - the outflow
      Throws:
      IOException - exception raised by the serialization and outflow writing process
    • getSerialPrototype

      S8SerialPrototype<?> getSerialPrototype()
      Get serial prototype
      Returns:
      the serial prototype
    • computeFootprint

      long computeFootprint()
      return a proxy of memory footprint
      Returns:
      the value
    • deepClone

      S8Serializable deepClone()
      Generate a deep clone of this serializable
      Returns:
      a deep clone