Class UnsafeChunkEncoderLE

All Implemented Interfaces:
Closeable, AutoCloseable

public class UnsafeChunkEncoderLE extends UnsafeChunkEncoder
Implementation to use on Little Endian architectures.
  • Constructor Details

    • UnsafeChunkEncoderLE

      public UnsafeChunkEncoderLE(int totalLength)
    • UnsafeChunkEncoderLE

      public UnsafeChunkEncoderLE(int totalLength, boolean bogus)
    • UnsafeChunkEncoderLE

      public UnsafeChunkEncoderLE(int totalLength, BufferRecycler bufferRecycler)
    • UnsafeChunkEncoderLE

      public UnsafeChunkEncoderLE(int totalLength, BufferRecycler bufferRecycler, boolean bogus)
  • Method Details

    • tryCompress

      protected int tryCompress(byte[] in, int inPos, int inEnd, byte[] out, int outPos)
      Description copied from class: ChunkEncoder
      Main workhorse method that will try to compress given chunk, and return end position (offset to byte after last included byte). Result will be "raw" encoded contents without chunk header information: caller is responsible for prepending header, if it chooses to use encoded data; it may also choose to instead create an uncompressed chunk.
      Specified by:
      tryCompress in class ChunkEncoder
      Returns:
      Output pointer after handling content, such that result - originalOutPost is the actual length of compressed chunk (without header)