Class BytesMarshaller

  • All Implemented Interfaces:
    Marshaller<byte[]>

    public class BytesMarshaller
    extends Object
    implements Marshaller<byte[]>
    Implementation of a Marshaller for byte arrays
    • Constructor Detail

      • BytesMarshaller

        public BytesMarshaller()
    • Method Detail

      • getFixedSize

        public int getFixedSize()
        Specified by:
        getFixedSize in interface Marshaller<byte[]>
        Returns:
        -1 if the object do not always marshall to a fixed size, otherwise return that fixed size.
      • deepCopy

        public byte[] deepCopy​(byte[] source)
        Specified by:
        deepCopy in interface Marshaller<byte[]>
        Returns:
        a deep copy of the source object.