@@ -19,6 +19,7 @@ private val HEX_DIGIT_BYTES = ByteArray(16) {
1919 * @param short the short integer to be written.
2020 *
2121 * @throws IllegalStateException when the sink is closed.
22+ * @throws IOException when some I/O error occurs.
2223 *
2324 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeShortLe
2425 */
@@ -32,6 +33,7 @@ public fun Sink.writeShortLe(short: Short) {
3233 * @param int the integer to be written.
3334 *
3435 * @throws IllegalStateException when the sink is closed.
36+ * @throws IOException when some I/O error occurs.
3537 *
3638 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeIntLe
3739 */
@@ -45,6 +47,7 @@ public fun Sink.writeIntLe(int: Int) {
4547 * @param long the long integer to be written.
4648 *
4749 * @throws IllegalStateException when the sink is closed.
50+ * @throws IOException when some I/O error occurs.
4851 *
4952 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeLongLe
5053 */
@@ -60,6 +63,7 @@ public fun Sink.writeLongLe(long: Long) {
6063 * @param long the long to be written.
6164 *
6265 * @throws IllegalStateException when the sink is closed.
66+ * @throws IOException when some I/O error occurs.
6367 *
6468 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeDecimalLong
6569 */
@@ -141,6 +145,7 @@ public fun Sink.writeDecimalLong(long: Long) {
141145 * @param long the long to be written.
142146 *
143147 * @throws IllegalStateException when the sink is closed.
148+ * @throws IOException when some I/O error occurs.
144149 *
145150 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeHexLong
146151 */
@@ -176,6 +181,7 @@ public fun Sink.writeHexadecimalUnsignedLong(long: Long) {
176181 * @param byte the byte to be written.
177182 *
178183 * @throws IllegalStateException when the sink is closed.
184+ * @throws IOException when some I/O error occurs.
179185 *
180186 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeUByte
181187 */
@@ -189,6 +195,7 @@ public fun Sink.writeUByte(byte: UByte) {
189195 * @param short the unsigned short integer to be written.
190196 *
191197 * @throws IllegalStateException when the sink is closed.
198+ * @throws IOException when some I/O error occurs.
192199 *
193200 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeUShort
194201 */
@@ -202,6 +209,7 @@ public fun Sink.writeUShort(short: UShort) {
202209 * @param int the unsigned integer to be written.
203210 *
204211 * @throws IllegalStateException when the sink is closed.
212+ * @throws IOException when some I/O error occurs.
205213 *
206214 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeUInt
207215 */
@@ -215,6 +223,7 @@ public fun Sink.writeUInt(int: UInt) {
215223 * @param long the unsigned long integer to be written.
216224 *
217225 * @throws IllegalStateException when the sink is closed.
226+ * @throws IOException when some I/O error occurs.
218227 *
219228 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeULong
220229 */
@@ -228,6 +237,7 @@ public fun Sink.writeULong(long: ULong) {
228237 * @param short the unsigned short integer to be written.
229238 *
230239 * @throws IllegalStateException when the sink is closed.
240+ * @throws IOException when some I/O error occurs.
231241 *
232242 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeUShortLe
233243 */
@@ -241,6 +251,7 @@ public fun Sink.writeUShortLe(short: UShort) {
241251 * @param int the unsigned integer to be written.
242252 *
243253 * @throws IllegalStateException when the sink is closed.
254+ * @throws IOException when some I/O error occurs.
244255 *
245256 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeUIntLe
246257 */
@@ -254,6 +265,7 @@ public fun Sink.writeUIntLe(int: UInt) {
254265 * @param long the unsigned long integer to be written.
255266 *
256267 * @throws IllegalStateException when the sink is closed.
268+ * @throws IOException when some I/O error occurs.
257269 *
258270 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeULongLe
259271 */
@@ -276,6 +288,7 @@ public fun Sink.writeULongLe(long: ULong) {
276288 * @param float the floating point number to be written.
277289 *
278290 * @throws IllegalStateException when the sink is closed.
291+ * @throws IOException when some I/O error occurs.
279292 *
280293 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeFloat
281294 */
@@ -294,6 +307,7 @@ public fun Sink.writeFloat(float: Float) {
294307 * @param double the floating point number to be written.
295308 *
296309 * @throws IllegalStateException when the sink is closed.
310+ * @throws IOException when some I/O error occurs.
297311 *
298312 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeDouble
299313 */
@@ -316,6 +330,7 @@ public fun Sink.writeDouble(double: Double) {
316330 * @param float the floating point number to be written.
317331 *
318332 * @throws IllegalStateException when the sink is closed.
333+ * @throws IOException when some I/O error occurs.
319334 *
320335 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeFloatLe
321336 */
@@ -334,6 +349,7 @@ public fun Sink.writeFloatLe(float: Float) {
334349 * @param double the floating point number to be written.
335350 *
336351 * @throws IllegalStateException when the sink is closed.
352+ * @throws IOException when some I/O error occurs.
337353 *
338354 * @sample kotlinx.io.samples.KotlinxIoCoreCommonSamples.writeDoubleLe
339355 */
@@ -353,6 +369,7 @@ public fun Sink.writeDoubleLe(double: Double) {
353369 * @param lambda the callback accessing internal buffer.
354370 *
355371 * @throws IllegalStateException when the sink is closed.
372+ * @throws IOException when some I/O error occurs.
356373 */
357374@DelicateIoApi
358375@OptIn(InternalIoApi ::class , ExperimentalContracts ::class )
0 commit comments