<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-memory:dokkaHtml/commonMain"><divclass="symbol monospace">interface <ahref="index.html">MemoryWriter</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">The interface to write primitive types into this memory.</p></div></div>
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-memory:dokkaHtml/commonMain"><divclass="symbol monospace">abstract fun <ahref="release.html">release</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></div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2Frelease%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="release"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2Frelease%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2Frelease%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="release"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2Frelease%2F%23%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Disposes this writer if needed.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteByte%2F%23kotlin.Int%23kotlin.Byte%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeByte"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteByte%2F%23kotlin.Int%23kotlin.Byte%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteByte%2F%23kotlin.Int%23kotlin.Byte%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeByte"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteByte%2F%23kotlin.Int%23kotlin.Byte%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html">Byte</a> at certain <spandata-unresolved-link="space.kscience.kmath.memory/MemoryWriter/offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteDouble%2F%23kotlin.Int%23kotlin.Double%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeDouble"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteDouble%2F%23kotlin.Int%23kotlin.Double%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteDouble%2F%23kotlin.Int%23kotlin.Double%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeDouble"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteDouble%2F%23kotlin.Int%23kotlin.Double%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a> at certain <spandata-unresolved-link="space.kscience.kmath.memory/MemoryWriter/offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteFloat%2F%23kotlin.Int%23kotlin.Float%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeFloat"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteFloat%2F%23kotlin.Int%23kotlin.Float%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteFloat%2F%23kotlin.Int%23kotlin.Float%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeFloat"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteFloat%2F%23kotlin.Int%23kotlin.Float%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html">Float</a> at certain <spandata-unresolved-link="space.kscience.kmath.memory/MemoryWriter/offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteInt%2F%23kotlin.Int%23kotlin.Int%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeInt"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteInt%2F%23kotlin.Int%23kotlin.Int%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteInt%2F%23kotlin.Int%23kotlin.Int%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeInt"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteInt%2F%23kotlin.Int%23kotlin.Int%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> at certain <spandata-unresolved-link="space.kscience.kmath.memory/MemoryWriter/offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteLong%2F%23kotlin.Int%23kotlin.Long%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeLong"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteLong%2F%23kotlin.Int%23kotlin.Long%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteLong%2F%23kotlin.Int%23kotlin.Long%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeLong"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteLong%2F%23kotlin.Int%23kotlin.Long%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a> at certain <spandata-unresolved-link="space.kscience.kmath.memory/MemoryWriter/offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteShort%2F%23kotlin.Int%23kotlin.Short%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeShort"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteShort%2F%23kotlin.Int%23kotlin.Short%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteShort%2F%23kotlin.Int%23kotlin.Short%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"anchor-label="writeShort"id="%5Bspace.kscience.kmath.memory%2FMemoryWriter%2FwriteShort%2F%23kotlin.Int%23kotlin.Short%2FPointingToDeclaration%2F%5D%2FFunctions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html">Short</a> at certain <spandata-unresolved-link="space.kscience.kmath.memory/MemoryWriter/offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2F%2Fwrite%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23TypeParam%28bounds%3D%5Bkotlin.Any%5D%29%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"anchor-label="write"id="%5Bspace.kscience.kmath.memory%2F%2Fwrite%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23TypeParam%28bounds%3D%5Bkotlin.Any%5D%29%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2F%2Fwrite%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23TypeParam%28bounds%3D%5Bkotlin.Any%5D%29%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"anchor-label="write"id="%5Bspace.kscience.kmath.memory%2F%2Fwrite%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23TypeParam%28bounds%3D%5Bkotlin.Any%5D%29%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes the object <spandata-unresolved-link="space.kscience.kmath.memory//value/#/PointingToCallableParameters(-1)/">value</span> with <spandata-unresolved-link="space.kscience.kmath.memory//spec/#/PointingToCallableParameters(-1)/">spec</span> starting from <spandata-unresolved-link="space.kscience.kmath.memory//offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>
<adata-name="%5Bspace.kscience.kmath.memory%2F%2FwriteArray%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23kotlin.Array%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"anchor-label="writeArray"id="%5Bspace.kscience.kmath.memory%2F%2FwriteArray%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23kotlin.Array%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bspace.kscience.kmath.memory%2F%2FwriteArray%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23kotlin.Array%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"anchor-label="writeArray"id="%5Bspace.kscience.kmath.memory%2F%2FwriteArray%2Fspace.kscience.kmath.memory.MemoryWriter%23space.kscience.kmath.memory.MemorySpec%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%23kotlin.Int%23kotlin.Array%5BTypeParam%28bounds%3D%5Bkotlin.Any%5D%29%5D%2FPointingToDeclaration%2F%5D%2FExtensions%2F882494181"data-filterable-set=":kmath-memory:dokkaHtml/commonMain"></a>Writes <spandata-unresolved-link="space.kscience.kmath.memory//array/#/PointingToCallableParameters(-1)/">array</span> of objects mapped by <spandata-unresolved-link="space.kscience.kmath.memory//spec/#/PointingToCallableParameters(-1)/">spec</span> at certain <spandata-unresolved-link="space.kscience.kmath.memory//offset/#/PointingToCallableParameters(-1)/">offset</span>.</div></div>