<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="symbol monospace">class <ahref="index.html">VirtualBuffer</a><out <ahref="index.html">T</a>>(size: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, generator: (<ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>) -><ahref="index.html">T</a>) : <ahref="../-buffer/index.html">Buffer</a><<ahref="index.html">T</a>><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">A buffer with content calculated on-demand. The calculated content is not stored, so it is recalculated on each call. Useful when one needs single element from the buffer.</p></div></div>
<divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":kmath-core:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">T</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">the type of elements provided by the buffer.</p></div></div></div></div></div></div></div></div></div>
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="symbol monospace">fun <out <ahref="index.html">T</a>><ahref="-virtual-buffer.html">VirtualBuffer</a>(size: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, generator: (<ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>) -><ahref="index.html">T</a>)<spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="brief ">the type of elements provided by the buffer.</div></div></div>
<adata-name="2009092656%2FFunctions%2F244675578"anchor-label="get"id="2009092656%2FFunctions%2F244675578"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="2009092656%2FFunctions%2F244675578"anchor-label="get"id="2009092656%2FFunctions%2F244675578"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"></a>Gets element at given index.</div></div>
<adata-name="-1090738172%2FFunctions%2F244675578"anchor-label="iterator"id="-1090738172%2FFunctions%2F244675578"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"></a><divclass="brief "><adata-name="-1090738172%2FFunctions%2F244675578"anchor-label="iterator"id="-1090738172%2FFunctions%2F244675578"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"></a>Iterates over all elements.</div></div>
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"data-togglable="Properties"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><adata-name="904932945%2FProperties%2F244675578"anchor-label="size"id="904932945%2FProperties%2F244675578"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"></a><divclass="symbol monospace">open override val <ahref="size.html">size</a>: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="brief "><adata-name="904932945%2FProperties%2F244675578"anchor-label="size"id="904932945%2FProperties%2F244675578"data-filterable-set=":kmath-core:dokkaHtmlPartial/commonMain"></a>The size of this buffer.</div></div></div>