[squeak-dev] RawBitsArray vs. DataStream

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Nov 22 10:55:37 UTC 2022


Hi Marcel,
I would expect that a RawBitsArray just store the raw bits on the
dataStream...
I would not expect that a low level layer would interpret the contents of
raw bits!

Le mar. 22 nov. 2022 à 10:58, Marcel Taeumel <marcel.taeumel at hpi.de> a
écrit :

> Hi all --
>
> Should the following work?
>
> class := DoubleByteArray.
> size := 10.
> dummy := 123.
>
> array := class new: size.
> array  atAllPut: dummy.
>
> (DataStream newFileNamed: 'numbers')
> nextPut: array;
> close.
>
> stream := DataStream fileNamed: 'numbers'.
> load := stream readArray.
> stream close.
> load explore
>
> Best,
> Marcel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20221122/1248e7ba/attachment.html>


More information about the Squeak-dev mailing list