Class FixedDataImpl

  • All Implemented Interfaces:
    FixedData

    public class FixedDataImpl
    extends java.lang.Object
    implements FixedData
    Fixed Data Mapper Impl
    Since:
    3.1.0
    Author:
    PARK Yong Seo
    • Field Summary

      • Fields inherited from interface me.saro.commons.bytes.fd.FixedData

        STORE
    • Method Summary

      Modifier and Type Method Description
      byte[] bindBytes​(java.lang.Object data, byte[] out, int offset)
      the class to bind(write) the bytes
      int size()
      get byte size of the "FixedData" class
      <T> T toClass​(byte[] bytes, int offset)
      bytes to class
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • size

        public int size()
        Description copied from interface: FixedData
        get byte size of the "FixedData" class
        Specified by:
        size in interface FixedData
        Returns:
      • bindBytes

        public byte[] bindBytes​(java.lang.Object data,
                                byte[] out,
                                int offset)
        Description copied from interface: FixedData
        the class to bind(write) the bytes
        Specified by:
        bindBytes in interface FixedData
        Returns:
      • toClass

        public <T> T toClass​(byte[] bytes,
                             int offset)
        Description copied from interface: FixedData
        bytes to class
        Specified by:
        toClass in interface FixedData
        Returns: