Hi,

I am trying the new stream.Readable interface.


First, I implemented a myStream._read() internal method.

I am pushing data like this:

myStream.push("some string");


Consuming data with myStream.read( length ) works just fine when specifying 
the length to read, but there is an error when not specifying length:

myStream.read();

TypeError: Object ":2632126464} has no method 'copy'


...the same error happens when I try to consume more data then there is 
available to consume in the stream buffer:

myStream.read( 999999 );


Is there something I don't understand yet?

please help,

-Laurent

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to