Interface IWordSerializer

  • All Known Implementing Classes:
    BigEndianAscendingWordSerializer

    public interface IWordSerializer
    Writes 'words' of fixed width, in sequence, to a byte array.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] getBytes()
      Returns the backing array of bytes that contain the serialized words.
      void writeWord​(long word)
      Writes the word to the backing array.
    • Method Detail

      • writeWord

        void writeWord​(long word)
        Writes the word to the backing array.
        Parameters:
        word - the word to write.
      • getBytes

        byte[] getBytes()
        Returns the backing array of bytes that contain the serialized words.
        Returns:
        the serialized words as a byte[].