sok / Sok.Buffer / JSMultiplatformBuffer / toArray
fun toArray():
ByteArray
(source)
Platform and version requirements: JS
Get all the data between the start of the buffer and its limit, the data is copied and is not linked to the content of the buffer. WARNING this behaviour is different from the ByteBuffer array() method, please read the documentation carefully
Return data copied from the start fo the buffer to the limit