Class InputSource.DirectByteBufferSource

java.lang.Object
pl.droidsonroids.gif.InputSource
pl.droidsonroids.gif.InputSource.DirectByteBufferSource
Enclosing class:
InputSource

public static final class InputSource.DirectByteBufferSource
extends InputSource
Input using ByteBuffer as a source. It must be direct.
  • Constructor Details

    • DirectByteBufferSource

      public DirectByteBufferSource​(@NonNull ByteBuffer byteBuffer)
      Constructs new source. Buffer can be larger than size of the GIF data. Bytes beyond GIF terminator are not accessed.
      Parameters:
      byteBuffer - source buffer, must be direct