Branch: Tag:

2014-10-19

2014-10-19 12:18:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.Buffer: Fixed some documentation typos.

1285:    *! Adds length of data followed by @[data] to the buffer.    *!    *! This is identical to -  *! @tt{sprintf("%"+size_size+"H",(string)Stdio.IObuffer(data))@} but +  *! @tt{sprintf("%"+size_size+"H",(string)Stdio.Buffer(data))@} but    *! significantly faster.    *!    *! @[size_size] is the number of bytes used to represent the length of the data.
2355:    *! change where it will be rewound to.    *!    *! The typical use-case of this functionality is when parsing a -  *! packet protocol with variable length packets where the lenght is +  *! packet protocol with variable length packets where the length is    *! not immediately known. It saves you from keeping track of how    *! much to rewind if you had not actually gotten the whole packet    *! yet.
2374:    *! Stdio.Buffer data = b->read_hbuffer( 4 );    *! // we have read the whole packet, so no longer rewind on error.    *! rewind->release(); -  *! return handle_data_packet( chennel, data ); +  *! return handle_data_packet( channel, data );    *! }    *! }    *! @endcode