Class ByteArraySerializer

java.lang.Object
org.apache.fory.serializer.Serializer<com.badlogic.gdx.utils.ByteArray>
com.github.tommyettinger.tantrum.libgdx.ByteArraySerializer

public class ByteArraySerializer extends org.apache.fory.serializer.Serializer<com.badlogic.gdx.utils.ByteArray>
Fory Serializer for jdkgdxds ByteArrays.
  • Field Summary

    Fields inherited from class org.apache.fory.serializer.Serializer

    fory, immutable, isJava, needToCopyRef, needToWriteRef, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByteArraySerializer(org.apache.fory.Fory fory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.badlogic.gdx.utils.ByteArray
    read(org.apache.fory.memory.MemoryBuffer input)
     
    void
    write(org.apache.fory.memory.MemoryBuffer output, com.badlogic.gdx.utils.ByteArray data)
     

    Methods inherited from class org.apache.fory.serializer.Serializer

    copy, getType, isImmutable, needToCopyRef, needToWriteRef, xread, xwrite

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • write

      public void write(org.apache.fory.memory.MemoryBuffer output, com.badlogic.gdx.utils.ByteArray data)
      Overrides:
      write in class org.apache.fory.serializer.Serializer<com.badlogic.gdx.utils.ByteArray>
    • read

      public com.badlogic.gdx.utils.ByteArray read(org.apache.fory.memory.MemoryBuffer input)
      Overrides:
      read in class org.apache.fory.serializer.Serializer<com.badlogic.gdx.utils.ByteArray>