Hello,

I'm trying to implement a binary ReadStream that gets its data not from a
Smalltalk collection but from some external memory address. I got this
address from a library call using NativeBoost.

The NBExternalAddress has methods to access bytes, int's and longs but
there is no method to get a ByteArray starting at a specified offset and
with a specified length. I need a method like this to implement the
ReadStream>>next: method efficiently.

Is it possible ti implement such a method or are there other ways to
implement a ReadStream efficiently?

In [1] I read that there was already an idea to implement a nbAddressAt:
method. This would also be using in combination with NativeBoost
class>>#memCopy:to:size

Regrads,
Jan.

[1]
http://forum.world.st/Pharo-dev-NB-Review-amp-fixes-amp-ideas-td4698514.html

Reply via email to