Class SalmonFileInputStream.CacheBuffer

java.lang.Object
com.mku.salmon.streams.SalmonFileInputStream.CacheBuffer
Enclosing class:
SalmonFileInputStream

public static class SalmonFileInputStream.CacheBuffer extends Object
Class will be used to cache decrypted data that can later be read via the ReadAt() method without requesting frequent decryption reads.
  • Field Details

    • buffer

      public byte[] buffer
    • startPos

      public long startPos
    • count

      public long count
  • Constructor Details

    • CacheBuffer

      public CacheBuffer(int bufferSize)
      Instantiate a cache buffer.
      Parameters:
      bufferSize - The buffer size
  • Method Details

    • clear

      public void clear()
      Clear the buffer.