reading from a ubyte[] | byte[] as if from a stream? (Phobos)
Tomas Lindquist Olsen
tomas at famolsen.dk
Thu Sep 18 13:21:40 PDT 2008
BCS wrote:
> Reply to Charles,
>
>> Is it possible to read from a byte or ubyte array as if from a stream?
>> It looks like it should be not only possible, but easy...but I haven't
>> figured it out.
>>
>> BufferedFile *MUST* do that kind of thing internally, but it feels
>> like there ought to be a way to say "This array is your data, read
>> from it!" rather than digging through the guts of it and copying all
>> the relevant code into a separate code-space.
>>
>
> MemoryStream
> http://www.digitalmars.com/d/1.0/phobos/std_stream.html
>
>
From what I read, MemoryStream copies, TArrayStream does not
Not sure what's wanted here though :)
More information about the Digitalmars-d-learn
mailing list