Interface IWordDeserializer

  • public interface IWordDeserializer
    Reads 'words' of a fixed width, in sequence, from a byte array.
    • Method Detail

      • readWord

        long readWord()
        the next word in the sequence. Should not be called more than totalWordCount() times.
      • totalWordCount

        int totalWordCount()
        Returns the number of words that could be encoded in the sequence. NOTE: the sequence that was encoded may be shorter than the value this method returns due to padding issues within bytes. This guarantees only an upper bound on the number of times readWord() can be called.
        the maximum number of words that could be read from the sequence.