code: @Implementation(minSdk = LOLLIPOP)
    protected ByteBuffer getBuffer(boolean input, int index) {
      ByteBuffer[] buffers = input ? inputBuffers : outputBuffers;
  
      return (index >= 0 && index < buffers.length) ? buffers[index] : null;
    }
docs: Returns the input or output buffer corresponding to the given index, or null if invalid.