<divclass="content sourceset-depenent-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>array<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="-memory/index.html">Memory</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">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-depenent-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%2FExtensions%2F449431098">Memory.Companion</a><spanclass="token punctuation">.</span><ahref="wrap.html"><spanclass="token function">wrap</span></a><spanclass="token punctuation">(</span>array<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</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">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-depenent-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%2FExtensions%2F341816670">Memory.Companion</a><spanclass="token punctuation">.</span><ahref="wrap.html"><spanclass="token function">wrap</span></a><spanclass="token punctuation">(</span>array<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../../kmath-memory/space.kscience.kmath.memory/-memory/index.html">Memory</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">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.kscie