<divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-memory:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">expect </span><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="-memory/-companion/index.html">Memory.Companion</a><spanclass="token punctuation">.</span><ahref="wrap.html"><spanclass="token function">wrap</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">array<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="-memory/index.html">Memory</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-memory/src/commonMain/kotlin/space/kscience/kmath/memory/Memory.kt#L158">source</a>)</span></span></div><pclass="paragraph">Wraps a <ahref="-memory/index.html">Memory</a> around existing <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>. This operation is unsafe since the array is not copied and could be mutated independently of the resulting <ahref="-memory/index.html">Memory</a>.</p></div><divclass="content sourceset-dependent-content"data-togglable=":kmath-memory:dokkaHtmlPartial/jsMain"><divclass="symbol monospace"><spanclass="token keyword">actual </span><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="-memory/-companion/index.html#-1476492084%2FMain%2F449431098">Memory.Companion</a><spanclass="token punctuation">.</span><ahref="wrap.html"><spanclass="token function">wrap</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">array<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-memory/src/jsMain/kotlin/space/kscience/kmath/memory/DataViewMemory.kt#L100">source</a>)</span></span></div><pclass="paragraph">Wraps a <ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</a> around existing <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>. This operation is unsafe since the array is not copied and could be mutated independently of the resulting <ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</a>.</p></div><divclass="content sourceset-dependent-content"data-togglable=":kmath-memory:dokkaHtmlPartial/jvmMain"><divclass="symbol monospace"><spanclass="token keyword">actual </span><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="-memory/-companion/index.html#-1476492084%2FMain%2F341816670">Memory.Companion</a><spanclass="token punctuation">.</span><ahref="wrap.html"><spanclass="token function">wrap</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">array<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-memory/src/jvmMain/kotlin/space/kscience/kmath/memory/ByteBufferMemory.kt#L107">source</a>)</span></span></div><pclass="paragraph">Wraps a <ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</a> around existin