Dominaezzz
01/29/2020, 12:07 PMBuffer
now uses a ByteArray
instead of CPointer<ByteVar>
. Is <http://kotlinx.io|kotlinx.io>
still going to provide an abstraction for off-heap memory or should I be looking into implementing my own?altavir
01/29/2020, 12:49 PMBinary
class, which represents re-readable binary block and make any type of input be able to fill the Binary native to it. Meaning that if we are reading from byte stream, we are getting ByteArray
and if we are reading from off-heap storage, we get off-heap binary.Dominaezzz
01/29/2020, 12:53 PMaltavir
01/29/2020, 12:55 PMDominaezzz
01/29/2020, 12:58 PMexpect
/ actual
for the java.nio.Buffer
classes. The problem is I don't like the API of those classes very much.altavir
01/29/2020, 2:44 PMe5l
01/31/2020, 10:56 AMSo I noticed Buffer now uses a ByteArray instead of CPointer<ByteVar> . Is <http://kotlinx.io|kotlinx.io> still going to provide an abstraction for off-heap memory or should I be looking into implementing my own?
We did it only in the native part, just because we want to use GC to simplify API in case of long term cache(and similar use cases). In other cases, we're still using preallocated memory poolsjimn
01/31/2020, 4:29 PMDominaezzz
01/31/2020, 11:33 PMglMapBuffer(size: ULong): CPointer<ByteVar>
. I can't use <http://kotlinx.io|kotlinx.io>
, to represent this data. In the end that's all I really need.e5l
02/03/2020, 8:00 AMDominaezzz
02/03/2020, 9:32 AMe5l
02/03/2020, 10:36 AMe5l
02/03/2020, 10:41 AMplayground
module. Thanks for pointing!Dominaezzz
02/03/2020, 10:53 AMe5l
02/03/2020, 11:26 AMplayground
module add this point