@@ -1482,7 +1482,7 @@ Read bytes from an input byte stream source.
1482
1482
On success, ` $size ` indicates the number of bytes read, and
1483
1483
` $read_status ` indicates the state of the stream.
1484
1484
1485
- When ` $read_status ` is ` $read ` , ` $size ` is equal to the total buffer size
1485
+ When ` $read_status ` is ` $ready ` , ` $size ` is equal to the total buffer size
1486
1486
of ` $iovs ` .
1487
1487
1488
1488
When ` $read_status ` is ` $end ` , or on failure, subsequent calls to [ ` read ` ] ( #read )
@@ -1526,7 +1526,7 @@ Consume bytes from an input byte stream source, discarding the data.
1526
1526
On success, ` $size ` indicates the number of bytes read, and
1527
1527
` $read_status ` indicates the state of the stream.
1528
1528
1529
- When ` $read_status ` is ` $read ` , ` $size ` is equal to the total buffer size
1529
+ When ` $read_status ` is ` $ready ` , ` $size ` is equal to the total buffer size
1530
1530
of ` $iovs ` .
1531
1531
1532
1532
When ` $read_status ` is ` $end ` , or on failure, subsequent calls to [ ` read ` ] ( #read )
@@ -1730,7 +1730,7 @@ The pseudonym.
1730
1730
---
1731
1731
1732
1732
#### <a href =" #write_pseudonym " name =" write_pseudonym " ></a > ` write_pseudonym(source: output_byte_stream, name: pseudonym) -> Result<(), ()> `
1733
- Write a pseudonym's nameto the output stream.
1733
+ Write a pseudonym's name to the output stream.
1734
1734
1735
1735
This function traps if the pseudonym is not one obtained from calling
1736
1736
[ ` input_pseudonym ` ] ( #input_pseudonym ) or [ ` output_pseudonym ` ] ( #output_pseudonym ) with a ` $where ` parameter of
@@ -1742,11 +1742,14 @@ exposed.
1742
1742
1743
1743
##### Params
1744
1744
- <a href =" #write_pseudonym.source " name =" write_pseudonym.source " ></a > ` source ` : [ ` output_byte_stream ` ] ( #output_byte_stream )
1745
+ The output to write to.
1745
1746
1746
1747
- <a href =" #write_pseudonym.name " name =" write_pseudonym.name " ></a > ` name ` : [ ` pseudonym ` ] ( #pseudonym )
1748
+ The pseudonym representing the name to write.
1747
1749
1748
1750
##### Results
1749
1751
- <a href =" #write_pseudonym.result " name =" write_pseudonym.result " ></a > ` result ` : ` Result<(), ()> `
1752
+ Indicate success or failure.
1750
1753
1751
1754
###### Variant cases
1752
1755
- <a href =" #write_pseudonym.result.ok " name =" write_pseudonym.result.ok " ></a > ` ok `
@@ -1786,7 +1789,7 @@ On success, return the number of bytes forwarded.
1786
1789
---
1787
1790
1788
1791
#### <a href =" #forward_n " name =" forward_n " ></a > ` forward_n(source: input_byte_stream, sink: output_byte_stream, len: size) -> Result<(size, read_status), ()> `
1789
- Forward up to ` $n ` bytes from an input stream to an output stream.
1792
+ Forward up to ` $len ` bytes from an input stream to an output stream.
1790
1793
1791
1794
If a failure occurs on the output stream, the remaining data from the
1792
1795
input stream is consumed and discarded.
@@ -1833,8 +1836,10 @@ transmitted to the output.
1833
1836
##### Params
1834
1837
##### Results
1835
1838
- <a href =" #pipe.source " name =" pipe.source " ></a > ` source ` : [ ` input_byte_stream ` ] ( #input_byte_stream )
1839
+ A stream for reading from the created pipe.
1836
1840
1837
1841
- <a href =" #pipe.sink " name =" pipe.sink " ></a > ` sink ` : [ ` output_byte_stream ` ] ( #output_byte_stream )
1842
+ A stream for writing to the created pipe.
1838
1843
1839
1844
1840
1845
---
@@ -1845,4 +1850,5 @@ Return an output stream which discards data sent to it.
1845
1850
##### Params
1846
1851
##### Results
1847
1852
- <a href =" #null.sink " name =" null.sink " ></a > ` sink ` : [ ` output_byte_stream ` ] ( #output_byte_stream )
1853
+ A stream for writing bytes to be discarded.
1848
1854
0 commit comments