Skip to content

Adapter bufferInfo

Compare
Choose a tag to compare
@dhilt dhilt released this 22 Dec 03:15
· 279 commits to master since this release
46c54b6
  • New Adapter.bufferInfo property:
Name Type Description
bufferInfo IBufferInfo {
  firstIndex: number;
  lastIndex: number;
  minIndex: number;
  maxIndex: number;
  absMinIndex: number;
  absMaxIndex: number;
}
  • firstIndex & lastIndex are the first and the last indexes in the current Buffer.
  • minIndex & maxIndex are min and max indexes that were present in the Buffer.
  • absMinIndex & absMaxIndex are min and max indexes that can be present in the Buffer.
    • Internal indexes defaults are switched from null to NaN.
    • Adapter methods return self-resolved Promise of { success: false} if they are called before the Scroller initialization is done.

    Link to PR.