Reference.StreamReadBytesUntil History

Hide minor edits - Show changes to output

May 09, 2013, at 05:19 PM by Alberto Cicchi -
Changed lines 5-6 from:
readBytesUntil() read characters from a stream into a buffer. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see [[/Reference/StreamSetTimeout | setTimeout]]()).
to:
readBytesUntil() reads characters from a stream into a buffer. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see [[/Reference/StreamSetTimeout | setTimeout]]()).
May 08, 2013, at 06:17 PM by Alberto Cicchi -
Changed lines 7-8 from:
readBytesUntil() returns the number of characters placed in the buffer. A 0 means no valid data was found.
to:
readBytesUntil() returns the number of bytes placed in the buffer. A 0 means no valid data was found.
Changed lines 23-24 from:
byte
to:
The number of bytes placed in the buffer
Deleted line 27:
February 11, 2013, at 07:14 PM by Roberto Guido - missing newline. Thanks to tamberg for the alert
Changed line 19 from:
''buffer'': the buffer to store the bytes in (char[] or byte[])
to:
''buffer'': the buffer to store the bytes in (char[] or byte[])\\
April 17, 2012, at 10:54 PM by Scott Fitzgerald -
Deleted line 28:
[[Reference.HomePage | Reference Home]]
November 26, 2011, at 10:44 PM by David A. Mellis -
Changed lines 13-14 from:
''stream''.readBytesUntil(''character'', ''length'')
to:
''stream''.readBytesUntil(''character'', ''buffer'', ''length'')
Added line 19:
''buffer'': the buffer to store the bytes in (char[] or byte[])
November 01, 2011, at 09:22 PM by Scott Fitzgerald -
Changed lines 13-14 from:
''stream''.readBytesUntil(''character'')
to:
''stream''.readBytesUntil(''character'', ''length'')
Changed lines 18-19 from:
''character'' : the character to search for (char)
to:
''character'' : the character to search for (char)\\
''length'' : the number of bytes to read (int)
November 01, 2011, at 09:20 PM by Scott Fitzgerald -
Changed lines 7-10 from:
readBytesUntil() returns the number of characters placed in the buffer, a 0 means no valid data was found.

This utility function is not publicly available, and is part of the Stream class.
to:
readBytesUntil() returns the number of characters placed in the buffer. A 0 means no valid data was found.

This function is part of the Stream class, and is called by any class that inherits from it (Wire, Serial, etc). See the [[Reference/Stream | Stream class]] main page for more information.

!!!!Syntax

''stream''.readBytesUntil(''character'')

!!!!Parameters

''stream'' : an instance of a class that inherits from Stream.\\
''character'' : the character to search for (char)
Changed lines 21-23 from:
byte\\

to:
byte
October 31, 2011, at 03:15 AM by Scott Fitzgerald -
Changed lines 5-6 from:
readBytesUntil() read characters from a stream into a buffer. The function terminates if length characters have been if the terminator character is detected, the determined length has been read, or timeout (see [[/Reference/StreamSetTimeout | setTimeout]]()).
to:
readBytesUntil() read characters from a stream into a buffer. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see [[/Reference/StreamSetTimeout | setTimeout]]()).
October 31, 2011, at 03:14 AM by Scott Fitzgerald -
Added lines 1-19:
!!readBytesUntil()

!!!!Description

readBytesUntil() read characters from a stream into a buffer. The function terminates if length characters have been if the terminator character is detected, the determined length has been read, or timeout (see [[/Reference/StreamSetTimeout | setTimeout]]()).

readBytesUntil() returns the number of characters placed in the buffer, a 0 means no valid data was found.

This utility function is not publicly available, and is part of the Stream class.

!!!!Returns
byte\\


!!!!See also
* [[(Reference.)Stream]]


[[Reference.HomePage | Reference Home]]

Share